3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x=5; $y=10; function myTest () { global $x, $y; $y = $x + $y; } myTest(); echo $y; //output 15 ?>

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.3.60.0120.00316.38
8.3.50.0100.01021.99
8.3.40.0060.00818.63
8.3.30.0090.00618.59
8.3.20.0090.00020.04
8.3.10.0080.00023.40
8.3.00.0000.00919.38
8.2.180.0060.01118.29
8.2.170.0060.00922.96
8.2.160.0000.01422.07
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0080.00419.36
8.2.120.0080.00026.35
8.2.110.0080.00021.04
8.2.100.0040.00818.04
8.2.90.0030.00619.26
8.2.80.0040.00417.97
8.2.70.0060.00317.75
8.2.60.0030.00618.04
8.2.50.0040.00418.07
8.2.40.0040.00719.21
8.2.30.0040.00420.72
8.2.20.0100.00017.85
8.2.10.0040.00418.22
8.2.00.0000.00718.09
8.1.280.0110.00425.92
8.1.270.0000.00821.96
8.1.260.0070.00028.09
8.1.250.0080.00028.09
8.1.240.0080.00417.77
8.1.230.0060.00617.54
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0000.00817.25
8.1.190.0080.00017.10
8.1.180.0040.00418.10
8.1.170.0050.00318.51
8.1.160.0050.00221.99
8.1.150.0040.00418.83
8.1.140.0040.00419.50
8.1.130.0070.00017.67
8.1.120.0060.00317.29
8.1.110.0040.00417.25
8.1.100.0000.00717.30
8.1.90.0050.00217.28
8.1.80.0040.00417.40
8.1.70.0040.00417.42
8.1.60.0000.00817.61
8.1.50.0040.00417.58
8.1.40.0080.00017.54
8.1.30.0080.00017.66
8.1.20.0040.00417.64
8.1.10.0000.00717.51
8.1.00.0000.00717.51
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0030.00318.37
8.0.270.0030.00317.20
8.0.260.0030.00317.31
8.0.250.0030.00317.05
8.0.240.0030.00317.03
8.0.230.0070.00016.82
8.0.220.0030.00316.77
8.0.210.0070.00016.75
8.0.200.0000.01016.85
8.0.190.0000.00716.88
8.0.180.0000.00716.93
8.0.170.0050.00316.83
8.0.160.0000.00716.86
8.0.150.0000.00716.91
8.0.140.0040.00416.72
8.0.130.0050.00313.33
8.0.120.0050.00316.74
8.0.110.0040.00416.84
8.0.100.0050.00216.77
8.0.90.0050.00316.95
8.0.80.0080.00816.88
8.0.70.0040.00416.93
8.0.60.0040.00416.76
8.0.50.0040.00416.77
8.0.30.0130.00617.24
8.0.20.0090.01017.40
8.0.10.0040.00417.02
8.0.00.0090.01016.83
7.4.330.0000.00515.08
7.4.320.0030.00316.53
7.4.300.0030.00316.56
7.4.290.0040.00416.47
7.4.280.0050.00316.54
7.4.270.0000.00716.42
7.4.260.0070.00016.54
7.4.250.0000.00916.35
7.4.240.0020.00516.60
7.4.230.0040.00416.66
7.4.220.0060.01116.57
7.4.210.0110.01116.56
7.4.200.0030.00316.62
7.4.160.0030.01016.60
7.4.150.0070.01017.40
7.4.140.0100.00817.86
7.4.130.0090.00916.55
7.4.120.0100.00716.46
7.4.110.0030.01816.45
7.4.100.0100.00716.44
7.4.90.0070.01716.47
7.4.80.0160.00319.39
7.4.70.0130.00316.36
7.4.60.0070.01016.39
7.4.50.0090.00016.49
7.4.40.0150.00616.64
7.4.30.0120.00916.56
7.4.00.0080.00815.06
7.3.330.0050.00013.27
7.3.320.0060.00013.36
7.3.310.0000.00716.25
7.3.300.0060.00016.18
7.3.290.0100.00616.26
7.3.280.0080.01016.28
7.3.270.0110.00717.40
7.3.260.0090.01216.30
7.3.250.0110.00816.27
7.3.240.0080.01116.45
7.3.230.0070.01016.39
7.3.210.0060.01016.57
7.3.200.0030.01716.48
7.3.190.0040.01216.60
7.3.180.0100.01016.45
7.3.170.0130.00716.33
7.3.160.0100.00716.44
7.3.120.0070.01114.88
7.3.110.0090.00314.89
7.3.100.0080.00414.80
7.3.90.0030.01314.71
7.3.80.0040.01214.83
7.3.70.0030.01414.80
7.3.60.0160.00014.68
7.3.50.0060.00914.87
7.3.40.0070.00414.46
7.3.30.0030.00914.79
7.3.20.0090.00616.73
7.3.10.0100.00716.33
7.3.00.0090.00716.38
7.2.330.0120.00616.46
7.2.320.0000.01616.66
7.2.310.0090.00916.72
7.2.300.0080.01116.54
7.2.290.0120.00916.45
7.2.250.0060.00915.07
7.2.240.0070.01415.03
7.2.230.0070.01015.20
7.2.220.0060.00614.97
7.2.210.0030.00914.93
7.2.200.0000.00914.70
7.2.190.0120.00614.96
7.2.180.0040.00914.94
7.2.170.0030.01414.93
7.2.130.0180.00816.39
7.2.120.0050.00916.52
7.2.110.0060.01016.73
7.2.100.0050.00816.69
7.2.90.0090.00716.51
7.2.80.0080.00816.73
7.2.70.0070.00716.46
7.2.60.0020.00816.68
7.2.50.0080.00816.42
7.2.40.0100.00816.52
7.2.30.0110.00616.59
7.2.20.0070.01016.62
7.2.10.0090.00716.53
7.2.00.0060.00917.55
7.1.330.0070.00715.48
7.1.320.0030.00615.67
7.1.310.0070.00715.76
7.1.300.0060.00615.50
7.1.290.0000.01715.83
7.1.280.0030.00615.84
7.1.270.0040.01115.46
7.1.260.0030.01315.71
7.1.250.0160.00415.46
7.1.100.0000.01317.74
7.1.70.0030.01017.23
7.1.60.0040.02119.48
7.1.50.0070.01316.51
7.1.00.0070.06722.40
7.0.200.0110.00714.83
7.0.60.0270.07319.86
7.0.50.0030.08717.86
7.0.40.0130.08320.02
7.0.30.0230.08320.26
7.0.20.0130.05320.12
7.0.10.0000.04720.26
7.0.00.0200.07720.16
5.6.280.0030.04021.07
5.6.210.0070.08020.60
5.6.200.0130.07318.16
5.6.190.0070.09020.50
5.6.180.0270.08020.46
5.6.170.0400.07720.47
5.6.160.0130.05320.54
5.6.150.0000.04318.23
5.6.140.0100.06318.15
5.6.130.0100.06018.18
5.6.120.0100.06020.99
5.6.110.0200.07721.14
5.6.100.0070.05320.88
5.6.90.0200.07321.13
5.6.80.0100.08020.39
5.5.350.0330.04320.34
5.5.340.0130.05718.09
5.5.330.0030.08020.25
5.5.320.0100.04720.21
5.5.310.0270.03320.36
5.5.300.0030.05718.03
5.5.290.0030.04318.04
5.5.280.0070.08320.89
5.5.270.0070.04020.77
5.5.260.0130.07020.89
5.5.250.0030.07020.50
5.5.240.0230.05320.35

preferences:
65.27 ms | 401 KiB | 5 Q