3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = $_GET['bar'] ?? 'hello'; echo $foo . "\n"; $_GET['bar'] = 'good bye'; $foo = $_GET['bar'] ?? 'hello'; echo $foo;

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.130.0110.00018.54
8.3.120.0040.00418.80
8.3.110.0100.01020.94
8.3.100.0030.00716.90
8.3.90.0070.00016.71
8.3.80.0060.00318.43
8.3.70.0200.00016.63
8.3.60.0150.00616.61
8.3.50.0110.00921.21
8.3.40.0110.00418.88
8.3.30.0100.01018.60
8.3.20.0000.00820.29
8.3.10.0000.00823.39
8.3.00.0040.00419.26
8.2.250.0080.01216.45
8.2.240.0030.00718.73
8.2.230.0110.00722.58
8.2.220.0000.00824.06
8.2.210.0050.00226.77
8.2.200.0130.00016.38
8.2.190.0080.01116.58
8.2.180.0090.00918.16
8.2.170.0120.00322.96
8.2.160.0040.01122.96
8.2.150.0030.00524.18
8.2.140.0080.00024.66
8.2.130.0060.00317.50
8.2.120.0060.00326.35
8.2.110.0090.00022.20
8.2.100.0110.00018.03
8.2.90.0050.00319.25
8.2.80.0050.00317.97
8.2.70.0000.00817.50
8.2.60.0000.00818.05
8.2.50.0040.00418.07
8.2.40.0030.00519.38
8.2.30.0000.00820.66
8.2.20.0040.00417.74
8.2.10.0000.00718.11
8.2.00.0040.00418.18
8.1.300.0100.01017.86
8.1.290.0060.00318.88
8.1.280.0100.00325.92
8.1.270.0100.00023.82
8.1.260.0040.00428.09
8.1.250.0000.00728.09
8.1.240.0030.00722.60
8.1.230.0080.00417.78
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0050.00317.35
8.1.180.0000.00718.10
8.1.170.0000.00918.63
8.1.160.0000.00721.93
8.1.150.0000.00718.77
8.1.140.0040.00419.57
8.1.130.0050.00217.76
8.1.120.0000.00717.48
8.1.110.0070.00017.37
8.1.100.0000.00717.42
8.1.90.0030.00417.46
8.1.80.0050.00317.51
8.1.70.0000.00717.40
8.1.60.0040.00417.50
8.1.50.0000.00917.57
8.1.40.0030.00617.41
8.1.30.0060.00317.53
8.1.20.0040.00417.56
8.1.10.0090.00017.55
8.1.00.0090.00317.47
8.0.300.0040.00418.77
8.0.290.0050.00216.75
8.0.280.0000.00718.36
8.0.270.0030.00317.19
8.0.260.0050.00317.16
8.0.250.0030.00316.90
8.0.240.0050.00216.85
8.0.230.0000.00717.00
8.0.220.0030.00316.88
8.0.210.0030.00416.93
8.0.200.0030.00316.96
8.0.190.0040.00416.93
8.0.180.0020.00516.89
8.0.170.0050.00516.80
8.0.160.0040.00416.91
8.0.150.0030.00316.89
8.0.140.0050.00316.83
8.0.130.0080.00013.33
8.0.120.0080.00016.88
8.0.110.0000.00716.81
8.0.100.0040.00416.86
8.0.90.0030.00316.98
8.0.80.0070.01016.89
8.0.70.0050.00316.89
8.0.60.0050.00316.90
8.0.50.0030.00516.84
8.0.30.0050.01517.07
8.0.20.0130.00817.40
8.0.10.0040.00417.13
8.0.00.0110.00716.78
7.4.330.0000.00516.75
7.4.320.0060.00016.52
7.4.300.0030.00316.49
7.4.290.0030.00316.57
7.4.280.0030.00316.51
7.4.270.0000.00616.49
7.4.260.0040.00416.63
7.4.250.0080.00016.55
7.4.240.0020.00516.54
7.4.230.0070.00016.70
7.4.220.0160.01216.40
7.4.210.0090.00516.47
7.4.200.0070.00016.39
7.4.160.0000.01416.66
7.4.150.0120.00617.40
7.4.140.0150.01017.86
7.4.130.0070.01016.48
7.4.120.0080.01216.69
7.4.110.0170.00016.47
7.4.100.0000.02116.62
7.4.90.0000.01716.65
7.4.80.0110.00619.39
7.4.70.0110.01016.46
7.4.60.0000.01616.59
7.4.50.0100.00716.35
7.4.40.0060.00916.53
7.4.30.0100.01316.48
7.4.00.0030.01015.02
7.3.330.0000.00513.00
7.3.320.0000.00513.20
7.3.310.0070.00016.28
7.3.300.0000.00816.30
7.3.290.0030.00316.28
7.3.280.0070.01116.30
7.3.270.0060.01617.40
7.3.260.0080.00816.33
7.3.250.0070.01116.45
7.3.240.0060.01516.41
7.3.230.0120.00416.43
7.3.210.0140.00316.54
7.3.200.0110.00616.60
7.3.190.0130.00316.22
7.3.180.0100.00716.53
7.3.170.0070.01416.66
7.3.160.0120.00916.27
7.2.330.0110.00616.71
7.2.320.0090.00916.41
7.2.310.0040.01216.43
7.2.300.0180.00616.46
7.2.290.0120.00916.79
7.2.60.0100.00716.66
7.2.00.0000.01219.43
7.1.200.0040.00815.73
7.1.100.0030.00918.00
7.1.70.0000.00817.16
7.1.60.0030.01719.48
7.1.50.0100.00716.86
7.1.00.0100.07022.36
7.0.200.0320.00614.70
7.0.100.0070.04319.93
7.0.90.0070.08019.93
7.0.80.0070.07019.95
7.0.70.0370.06719.95
7.0.60.0030.07319.91
7.0.50.0100.08020.12
7.0.40.0030.07020.05
7.0.30.0100.08320.08
7.0.20.0130.08020.11
7.0.10.0230.05320.13
7.0.00.0130.05720.10
5.6.280.0000.04321.09
5.6.250.0130.07320.60
5.6.240.0100.07320.51
5.6.230.0000.09020.67
5.6.220.0030.08320.58
5.6.210.0230.07020.55
5.6.200.0030.09021.06
5.6.190.0100.08321.07
5.6.180.0100.04321.07
5.6.170.0270.05020.95
5.6.160.0070.06720.93
5.6.150.0070.08721.11
5.6.140.0100.07321.05
5.6.130.0100.08021.01
5.6.120.0100.06321.11
5.6.110.0070.08320.99
5.6.100.0230.07021.16
5.6.90.0100.07321.04
5.6.80.0100.08020.40
5.6.70.0100.07720.30
5.6.60.0070.05020.37
5.6.50.0200.06720.41
5.6.40.0070.08020.44
5.6.30.0070.08020.30
5.6.20.0130.06720.36
5.6.10.0000.08320.43
5.6.00.0030.07720.41
5.5.380.0070.08720.34
5.5.370.0130.07320.47
5.5.360.0100.05320.35
5.5.350.0070.08320.33
5.5.340.0100.07720.86
5.5.330.0100.08020.81
5.5.320.0130.07320.89
5.5.310.0070.07720.87
5.5.300.0030.07020.89
5.5.290.0030.08020.85
5.5.280.0200.06020.72
5.5.270.0100.08020.87
5.5.260.0070.08320.89
5.5.250.0170.08320.56
5.5.240.0030.06320.17
5.5.230.0030.08320.29
5.5.220.0070.07320.28
5.5.210.0100.05720.26
5.5.200.0070.04020.22
5.5.190.0100.07020.15
5.5.180.0100.08020.25
5.5.160.0270.07720.14
5.5.150.0000.08020.14
5.5.140.0130.06720.13
5.5.130.0030.08020.12
5.5.120.0100.04720.11
5.5.110.0230.06320.16
5.5.100.0030.04320.09
5.5.90.0030.08020.06
5.5.80.0070.07020.14
5.5.70.0200.06020.06
5.5.60.0070.07320.06
5.5.50.0100.05020.09
5.5.40.0200.07020.00
5.5.30.0000.08020.12
5.5.20.0130.06320.10
5.5.10.0100.07020.04
5.5.00.0130.03320.05

preferences:
27.72 ms | 403 KiB | 5 Q