3v4l.org

run code in 300+ PHP versions simultaneously
<?php $actions = array( '*' => 'multiply', '/' => 'divide' ); function dontSwitch($option) { call_user_func($actions[$option]); } multiply() { return 'fuuuuu'; } divide() { return 'dump'; } echo dontSwitch('*');

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
5.4.270.4470.04019.17
5.4.260.4500.04319.11
5.4.250.4570.03719.04
5.4.240.4530.03718.93
5.4.230.4770.02718.93
5.4.220.4330.04319.26
5.4.210.4670.03718.95
5.4.200.4500.03319.06
5.4.190.3700.04018.98
5.4.180.3970.04319.16
5.4.170.4130.04019.03
5.4.160.3970.03718.91
5.4.150.4130.04019.11
5.4.140.3800.03716.51
5.4.130.4100.03316.45
5.4.120.4000.03016.50
5.4.110.3870.03716.32
5.4.100.4700.02716.35
5.4.90.4300.03316.48
5.4.80.4000.04316.52
5.4.70.3770.04016.43
5.4.60.3870.03316.42
5.4.50.4030.04016.53
5.4.40.4600.03316.58
5.4.30.3870.04016.48
5.4.20.3700.03716.45
5.4.10.3270.04016.29
5.4.00.3630.03715.82
5.3.280.4330.03314.59
5.3.270.4130.04014.61
5.3.260.4100.04014.66
5.3.250.3870.03714.60
5.3.240.3930.03714.68
5.3.230.3930.03314.65
5.3.220.4030.03314.49
5.3.210.4000.03014.56
5.3.200.4700.03314.56
5.3.190.3930.03714.61
5.3.180.3830.03714.57
5.3.170.4100.04014.50
5.3.160.3600.03714.64
5.3.150.3830.04014.56
5.3.140.4330.04014.59
5.3.130.3930.03714.60
5.3.120.4000.04314.46
5.3.110.3400.03014.72
5.3.100.3830.03014.06
5.3.90.4130.03014.03
5.3.80.3270.03313.94
5.3.70.4130.03714.02
5.3.60.4130.03714.00
5.3.50.4000.04313.94
5.3.40.3600.03013.95
5.3.30.4630.04313.91
5.3.20.3430.03013.69
5.3.10.3600.03313.69
5.3.00.3600.03313.52
5.2.170.3230.03311.09
5.2.160.3400.03011.19
5.2.150.2930.03311.20
5.2.140.3130.03311.13
5.2.130.3100.02711.09
5.2.120.3030.03011.11
5.2.110.3030.02710.99
5.2.100.3000.03011.02
5.2.90.3000.03011.26
5.2.80.3100.02711.10
5.2.70.3030.02710.98
5.2.60.2430.03011.05
5.2.50.2000.02711.03
5.2.40.1570.02710.99
5.2.30.1430.03011.02
5.2.20.2270.02011.01
5.2.10.1570.02710.89
5.2.00.2500.03010.70
5.1.60.2100.02310.04
5.1.50.2870.01710.04
5.1.40.2970.02710.13
5.1.30.2700.02710.30
5.1.20.2430.02010.41
5.1.10.2570.02010.23
5.1.00.2830.02310.07
5.0.50.1600.0178.54
5.0.40.1500.0208.38
5.0.30.1800.0338.20
5.0.20.1670.0138.13
5.0.10.1670.0208.19
5.0.00.1370.0308.16
4.4.90.1200.0136.05
4.4.80.0230.0136.05
4.4.70.0630.0136.05
4.4.60.0970.0136.05
4.4.50.0900.0176.05
4.4.40.1670.0236.05
4.4.30.1570.0176.05
4.4.20.1170.0176.05
4.4.10.1530.0206.05
4.4.00.1600.0306.05
4.3.110.1500.0176.05
4.3.100.1500.0206.05
4.3.90.1600.0206.05
4.3.80.1270.0276.05
4.3.70.1400.0206.05
4.3.60.1500.0176.05
4.3.50.1430.0206.05
4.3.40.1630.0236.05
4.3.30.0700.0136.05
4.3.20.0730.0176.05
4.3.10.0730.0136.05
4.3.00.0870.0176.05

preferences:
138.2 ms | 1394 KiB | 7 Q