3v4l.org

run code in 300+ PHP versions simultaneously
<?php $value = 2; if ($value == 0) { xdebug_var_dump($value); } elseif ($value == 1) { xdebug_var_dump($value); } else { xdebug_var_dump($value); }

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)
8.0.0beta10.0200.00016.86
8.0.0alpha30.0100.01316.53
8.0.0alpha20.0060.01216.51
8.0.0alpha10.0140.00316.50
7.4.80.0080.00919.39
7.4.70.0060.00916.45
7.4.60.0060.01216.48
7.4.50.0040.00416.50
7.4.40.0140.00422.77
7.4.30.0070.01016.68
7.4.10.0080.00814.91
7.4.00.0040.01014.88
7.3.200.0130.00319.39
7.3.190.0140.00616.42
7.3.180.0090.00616.50
7.3.170.0130.00316.48
7.3.160.0060.00916.44
7.3.130.0000.01815.02
7.3.120.0080.00814.76
7.3.110.0100.00714.76
7.3.100.0040.01214.80
7.3.90.0070.00714.91
7.3.80.0000.01514.81
7.3.70.0000.00814.86
7.3.60.0000.01414.88
7.3.50.0100.00314.54
7.3.40.0060.00614.75
7.3.30.0090.00614.93
7.3.20.0110.00016.54
7.3.10.0030.01216.54
7.3.00.0000.01116.72
7.2.320.0100.01016.64
7.2.310.0130.00316.70
7.2.300.0100.01316.36
7.2.290.0130.00316.55
7.2.260.0090.00914.76
7.2.250.0070.00715.06
7.2.240.0070.01014.76
7.2.230.0040.01114.82
7.2.220.0070.00714.84
7.2.210.0040.01114.83
7.2.200.0070.00715.10
7.2.190.0000.01415.01
7.2.180.0000.01015.00
7.2.170.0070.00714.97
7.2.160.0120.00314.89
7.2.150.0060.01116.93
7.2.140.0070.01016.85
7.2.130.0150.00316.80
7.2.120.0000.01016.56
7.2.110.0070.00716.92
7.2.100.0080.00416.58
7.2.90.0090.00616.68
7.2.80.0120.00316.92
7.2.70.0040.00816.73
7.2.60.0060.00816.83
7.2.50.0030.00716.93
7.2.40.0060.00616.82
7.2.30.0110.00016.91
7.2.20.0100.00616.91
7.2.10.0090.00916.95
7.2.00.0050.01118.09
7.1.330.0100.00715.76
7.1.320.0000.01415.36
7.1.310.0000.00915.73
7.1.300.0080.00415.72
7.1.290.0000.01115.74
7.1.280.0030.00615.69
7.1.270.0030.00815.51
7.1.260.0070.00715.50
7.1.250.0110.00415.61
7.1.240.0090.00915.59
7.1.230.0030.00715.75
7.1.220.0060.00615.58
7.1.210.0000.01715.44
7.1.200.0000.01015.45
7.1.190.0030.00715.64
7.1.180.0110.00015.73
7.1.170.0000.00815.34
7.1.160.0040.00415.73
7.1.150.0040.00815.75
7.1.140.0080.00415.67
7.1.130.0150.00015.57
7.1.120.0030.01015.72
7.1.110.0060.00315.61
7.1.100.0100.00715.49
7.1.90.0000.00815.53
7.1.80.0040.01215.68
7.1.70.0040.00916.14
7.1.60.0020.01016.44
7.1.50.0070.01016.18
7.1.40.0030.00715.46
7.1.30.0030.01015.75
7.1.20.0050.00515.26
7.1.10.0050.00615.73
7.1.00.0050.04218.92
7.0.330.0030.01315.07
7.0.320.0060.00615.43
7.0.310.0000.01515.19
7.0.300.0080.00315.26
7.0.290.0030.00615.24
7.0.280.0030.01015.28
7.0.270.0000.00815.33
7.0.260.0070.00715.46
7.0.250.0060.00315.48
7.0.240.0070.00315.43
7.0.230.0040.00815.46
7.0.220.0040.00815.43
7.0.210.0030.00915.32
7.0.200.0070.00716.06
7.0.190.0060.00615.21
7.0.180.0030.00715.34
7.0.170.0110.00015.48
7.0.160.0070.00715.36
7.0.150.0060.01115.45
7.0.140.0020.04418.58
7.0.130.0030.00715.44
7.0.120.0100.00715.14
7.0.110.0060.00315.33
7.0.100.0070.01115.23
7.0.90.0100.01015.41
7.0.80.0070.00715.21
7.0.70.0070.00715.52
7.0.60.0040.04617.63
7.0.50.0030.04916.67
7.0.40.0070.02516.79
7.0.30.0300.02816.74
7.0.20.0130.02816.62
7.0.10.0030.03316.74
7.0.00.0080.04216.79
5.6.400.0040.01114.44
5.6.390.0000.00914.57
5.6.380.0040.00714.39
5.6.370.0080.00413.91
5.6.360.0090.00614.10
5.6.350.0000.00814.51
5.6.340.0040.01114.20
5.6.330.0070.00314.31
5.6.320.0060.01014.00
5.6.310.0000.01714.54
5.6.300.0100.00314.58
5.6.290.0120.00014.43
5.6.280.0060.03817.64
5.6.270.0070.01114.26
5.6.260.0070.01414.20
5.6.250.0120.00614.38
5.6.240.0060.00314.39
5.6.230.0000.00914.30
5.6.220.0060.00614.33
5.6.210.0130.04117.38
5.6.200.0100.02216.27
5.6.190.0090.02717.36
5.6.180.0190.03117.57
5.6.170.0150.02217.32
5.6.160.0050.04817.27
5.6.150.0070.02216.27
5.6.140.0080.04516.14
5.6.130.0050.03916.14
5.6.120.0020.05017.85
5.6.110.0080.04517.60
5.6.100.0080.02517.59
5.6.90.0100.04217.60
5.6.80.0090.03717.21
5.6.70.2150.02617.22
5.6.60.0030.01514.05
5.6.50.0000.00814.18
5.6.40.0060.00314.06
5.6.30.0000.01414.18
5.6.20.0030.01014.36
5.6.10.0090.00614.34
5.6.00.0030.01013.95
5.5.380.0030.00714.13
5.5.370.0110.00614.25
5.5.360.0090.00614.28
5.5.350.0060.02117.36
5.5.340.0050.03816.16
5.5.330.0070.04117.23
5.5.320.0100.02617.15
5.5.310.0150.02817.21
5.5.300.0120.03516.09
5.5.290.0120.03816.08
5.5.280.0050.04217.37
5.5.270.0050.05017.55
5.5.260.0040.02417.42
5.5.250.0060.03317.23
5.5.240.0080.02217.07
5.5.230.0080.00313.83
5.5.220.0120.00613.78
5.5.210.0000.01314.25
5.5.200.0070.00314.04
5.5.190.0030.01014.22
5.5.180.0030.00713.87
5.5.170.0080.00313.98
5.5.160.0040.00814.18
5.5.150.0040.00713.99
5.5.140.0030.01014.16
5.5.130.0030.01013.95
5.5.120.0040.00714.05
5.5.110.0170.00014.14
5.5.100.0030.00714.06
5.5.90.0130.00314.00
5.5.80.0000.00913.99
5.5.70.0080.00314.04
5.5.60.0060.00614.40
5.5.50.0070.00714.01
5.5.40.0030.00913.88
5.5.30.0040.00813.82
5.5.20.0100.00013.78
5.5.10.0060.00613.96
5.5.00.0110.00014.33
5.4.450.0210.03115.12
5.4.440.0100.02815.07
5.4.430.0220.04015.16
5.4.420.0100.03015.18
5.4.410.0150.02314.94
5.4.400.0170.02015.08
5.4.390.0170.02115.03
5.4.380.0170.01815.00
5.4.370.0280.01814.94
5.4.360.0180.02914.82
5.4.350.0240.03115.03
5.4.340.0200.03615.01
5.4.330.0030.00710.91
5.4.320.0280.03414.88
5.4.310.0250.02215.08
5.4.300.0130.04014.84
5.4.290.0100.02814.99
5.4.280.0160.01814.84
5.4.270.0130.02214.82
5.4.260.0190.01614.96
5.4.250.0110.02314.73
5.4.240.0180.02014.90
5.4.230.0150.02115.04
5.4.220.0120.03514.89
5.4.210.0100.02414.80
5.4.200.0210.03614.71
5.4.190.0170.03515.01
5.4.180.0100.02915.03
5.4.170.0270.02314.97
5.4.160.0180.03014.98
5.4.150.0180.03514.89
5.4.140.0370.03313.63
5.4.130.0150.03313.61
5.4.120.0330.03613.55
5.4.110.0270.03513.62
5.4.100.0290.02713.57
5.4.90.0320.02913.58
5.4.80.0290.02413.54
5.4.70.0280.03513.49
5.4.60.0280.03513.50
5.4.50.0230.02013.55
5.4.40.0130.02313.69
5.4.30.0150.02313.70
5.4.20.0220.02313.57
5.4.10.0200.02213.31
5.4.00.0240.02213.12
5.3.290.0230.02412.48
5.3.280.0180.01712.44
5.3.270.0580.02312.54
5.3.260.0220.02212.44
5.3.250.0120.02512.35
5.3.240.0120.04412.30
5.3.230.0220.03112.51
5.3.220.0100.02312.41
5.3.210.0400.02812.29
5.3.200.0320.03212.31
5.3.190.0280.03312.44
5.3.180.0260.01812.49
5.3.170.0300.03312.56
5.3.160.0210.02212.53
5.3.150.0260.02012.42
5.3.140.0220.02012.47
5.3.130.0110.02012.37
5.3.120.0150.01712.31
5.3.110.0260.01812.42
5.3.100.0250.02012.16
5.3.90.0270.01812.22
5.3.80.0220.02112.19
5.3.70.0250.02012.12
5.3.60.0230.02111.96
5.3.50.0230.02112.07
5.3.40.0280.01712.13
5.3.30.0200.02312.09
5.3.20.0220.02211.85
5.3.10.0230.02011.81
5.3.00.0240.01611.75
5.2.170.0370.03711.13
5.2.160.0330.03711.00
5.2.150.0330.03011.07
5.2.140.0330.03011.13
5.2.130.0330.02711.03
5.2.120.0370.02710.98
5.2.110.0370.02710.92
5.2.100.0330.03011.07
5.2.90.0400.03311.11
5.2.80.0400.03011.05
5.2.70.0670.02311.09
5.2.60.0430.02710.97
5.2.50.0330.03010.90
5.2.40.0330.03010.81
5.2.30.0370.04310.87
5.2.20.0300.03710.90
5.2.10.0200.05710.85
5.2.00.0200.02710.86
5.1.60.0170.02310.00
5.1.50.0100.0309.97
5.1.40.0130.0309.96
5.1.30.0130.02710.33
5.1.20.0200.02010.23
5.1.10.0170.0239.96
5.1.00.0200.02010.06
5.0.50.0070.0308.44
5.0.40.0070.0178.37
5.0.30.0070.0378.08
5.0.20.0070.0238.16
5.0.10.0300.0278.20
5.0.00.0100.0338.30
4.4.90.0300.0106.58
4.4.80.0200.0106.58
4.4.70.0170.0106.58
4.4.60.0170.0176.58
4.4.50.0100.0376.58
4.4.40.0070.0276.58
4.4.30.0070.0206.58
4.4.20.0070.0176.58
4.4.10.0070.0176.58
4.4.00.0130.0236.58
4.3.110.0130.0176.58
4.3.100.0100.0176.58
4.3.90.0200.0176.58
4.3.80.0130.0376.58
4.3.70.0130.0306.58
4.3.60.0330.0206.58
4.3.50.0570.0176.58
4.3.40.0070.0276.58
4.3.30.0030.0376.58
4.3.20.0070.0336.58
4.3.10.0030.0206.58
4.3.00.0030.0276.58