3v4l.org

run code in 300+ PHP versions simultaneously
<?php $single_quotes = 'This is a String'; $double_quotes = "This is a String"; echo $single_quotes; echo $double_quotes; $var = 'String'; $single_quotes_var = 'This is a '.$var; $double_quotes_var = "This is a $var"; echo $single_quotes_var; echo $double_quotes_var; $var = 'This'; $single_quotes_var_pre = $var . ' is a String'; $double_quotes_var_pre = "$var is a String"; echo $single_quotes_var_pre; echo $double_quotes_var_pre;

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.70.0040.01116.63
8.3.60.0120.00916.38
8.3.50.0080.01121.01
8.3.40.0100.00718.88
8.3.30.0090.00618.72
8.3.20.0070.00020.20
8.3.10.0050.00221.76
8.3.00.0070.00021.95
8.2.180.0070.01118.54
8.2.170.0090.00622.96
8.2.160.0100.00320.39
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0070.00319.76
8.2.110.0090.00021.09
8.2.100.0040.00718.04
8.2.90.0000.00919.23
8.2.80.0000.00817.97
8.2.70.0000.00917.63
8.2.60.0000.00717.80
8.2.50.0040.00418.09
8.2.40.0040.00420.60
8.2.30.0000.00719.49
8.2.20.0040.00419.45
8.2.10.0000.00818.13
8.2.00.0090.00018.12
8.1.280.0120.00925.92
8.1.270.0150.00022.00
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0040.00422.47
8.1.230.0080.00420.88
8.1.220.0000.00817.76
8.1.210.0030.00618.77
8.1.200.0040.00417.13
8.1.190.0000.00817.35
8.1.180.0080.00018.10
8.1.170.0060.00318.39
8.1.160.0000.00720.57
8.1.150.0070.00020.61
8.1.140.0000.00819.43
8.1.130.0070.00017.75
8.1.120.0000.00717.33
8.1.110.0000.00717.25
8.1.100.0040.00417.41
8.1.90.0000.00817.46
8.1.80.0050.00317.30
8.1.70.0000.00817.39
8.1.60.0040.00817.40
8.1.50.0060.00317.49
8.1.40.0030.00517.49
8.1.30.0080.00017.52
8.1.20.0000.00717.60
8.1.10.0000.00817.51
8.1.00.0040.00417.30
8.0.300.0040.00418.77
8.0.290.0000.00716.63
8.0.280.0030.00318.44
8.0.270.0070.00017.25
8.0.260.0030.00317.30
8.0.250.0000.00716.95
8.0.240.0040.00416.91
8.0.230.0040.00416.91
8.0.220.0040.00416.85
8.0.210.0040.00416.80
8.0.200.0000.00616.99
8.0.190.0000.00716.83
8.0.180.0070.00016.90
8.0.170.0080.00016.95
8.0.160.0050.00216.85
8.0.150.0030.00316.80
8.0.140.0070.00016.86
8.0.130.0030.00313.30
8.0.120.0040.00416.80
8.0.110.0040.00416.86
8.0.100.0030.00516.95
8.0.90.0000.00816.83
8.0.80.0030.01216.90
8.0.70.0000.00716.91
8.0.60.0070.00016.96
8.0.50.0070.00016.68
8.0.30.0120.00617.21
8.0.20.0100.00817.40
8.0.10.0070.00316.95
8.0.00.0090.00816.67
7.4.330.0050.00016.71
7.4.320.0000.00616.51
7.4.300.0040.00416.42
7.4.290.0040.00416.58
7.4.280.0040.00416.44
7.4.270.0000.00716.44
7.4.260.0030.00316.35
7.4.250.0070.00016.39
7.4.240.0030.00316.55
7.4.230.0090.00016.60
7.4.220.0030.01516.58
7.4.210.0120.00616.56
7.4.200.0030.00316.35
7.4.160.0140.00416.61
7.4.150.0170.00017.40
7.4.140.0060.01217.86
7.4.130.0110.01116.57
7.4.120.0110.00616.49
7.4.110.0060.01216.44
7.4.100.0060.01216.59
7.4.90.0090.01216.45
7.4.80.0120.00619.39
7.4.70.0060.01016.53
7.4.60.0100.00616.57
7.4.50.0000.01816.41
7.4.40.0110.00716.58
7.4.30.0120.00616.37
7.4.00.0110.00314.85
7.3.330.0000.00513.00
7.3.320.0030.00312.99
7.3.310.0030.00316.11
7.3.300.0030.00316.24
7.3.290.0070.00716.29
7.3.280.0090.00816.23
7.3.270.0100.01017.40
7.3.260.0090.00916.57
7.3.250.0080.01016.33
7.3.240.0080.01116.40
7.3.230.0110.00916.39
7.3.210.0100.00616.42
7.3.200.0090.00919.39
7.3.190.0080.01216.22
7.3.180.0070.01016.47
7.3.170.0150.00316.32
7.3.160.0050.01516.60
7.2.330.0000.01716.73
7.2.320.0120.00616.73
7.2.310.0130.00316.44
7.2.300.0130.00316.59
7.2.290.0000.01716.34
7.2.00.0080.00319.15
7.1.100.0030.00617.72
7.1.70.0000.01517.10
7.1.60.0030.02019.40
7.1.50.0170.01316.77
7.1.00.0000.08022.44
7.0.200.0070.00316.60
7.0.60.0270.03720.01
7.0.50.0070.06017.88
7.0.40.0130.08320.21
7.0.30.0200.04720.18
7.0.20.0270.04020.01
7.0.10.0070.06020.19
7.0.00.0070.04020.00
5.6.280.0030.06321.07
5.6.210.0030.08020.60
5.6.200.0030.07318.22
5.6.190.0070.05720.60
5.6.180.0000.06020.45
5.6.170.0100.05020.48
5.6.160.0070.08320.44
5.6.150.0070.05318.11
5.6.140.0000.04018.20
5.6.130.0030.05718.16
5.6.120.0030.08320.89
5.6.110.0130.05021.04
5.6.100.0070.07021.12
5.6.90.0100.08021.12
5.6.80.0030.08020.50
5.5.350.0130.08720.49
5.5.340.0130.07017.90
5.5.330.0100.08020.13
5.5.320.0270.05720.41
5.5.310.0230.07720.20
5.5.300.0070.05317.91
5.5.290.0000.04317.98
5.5.280.0000.04720.96
5.5.270.0030.09020.86
5.5.260.0070.08720.83
5.5.250.0070.08020.69
5.5.240.0300.07320.14

preferences:
56.81 ms | 401 KiB | 5 Q