3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = "hello"; $b = "world"; //echo "{$a $b}\n"; // This causes a Parse error: syntax error, unexpected '$b' (T_VARIABLE), expecting } echo "{{$a} $b}\n"; // but you can escape the sequence -- why is the escape sequence character still a part of the output?

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.0140.00016.38
8.3.60.0090.00916.36
8.3.50.0130.00522.94
8.3.40.0000.01518.71
8.3.30.0030.01218.78
8.3.20.0000.00820.33
8.3.10.0080.00021.85
8.3.00.0000.00819.52
8.2.190.0110.00716.62
8.2.180.0110.00418.06
8.2.170.0140.00022.96
8.2.160.0100.00319.17
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0040.00420.39
8.2.120.0040.00426.35
8.2.110.0080.00321.13
8.2.100.0080.00417.89
8.2.90.0000.00817.78
8.2.80.0000.00817.97
8.2.70.0050.00317.93
8.2.60.0080.00017.93
8.2.50.0030.00618.10
8.2.40.0030.00619.38
8.2.30.0050.00319.23
8.2.20.0040.00417.69
8.2.10.0000.00718.00
8.2.00.0000.00817.96
8.1.280.0070.01025.92
8.1.270.0060.00323.64
8.1.260.0040.00428.09
8.1.250.0070.00028.09
8.1.240.0030.00623.83
8.1.230.0090.00320.92
8.1.220.0060.00317.74
8.1.210.0000.00819.10
8.1.200.0060.00317.00
8.1.190.0000.00817.10
8.1.180.0000.00818.10
8.1.170.0050.00318.56
8.1.160.0030.00518.75
8.1.150.0040.00418.72
8.1.140.0040.00419.52
8.1.130.0070.00017.75
8.1.120.0070.00017.38
8.1.110.0040.00417.28
8.1.100.0030.00317.40
8.1.90.0060.00317.30
8.1.80.0040.00417.46
8.1.70.0030.00617.39
8.1.60.0000.00817.43
8.1.50.0000.00817.52
8.1.40.0000.00817.43
8.1.30.0030.00517.61
8.1.20.0040.00417.59
8.1.10.0000.00817.41
8.1.00.0030.00517.49
8.0.300.0070.00019.65
8.0.290.0040.00416.75
8.0.280.0030.00318.36
8.0.270.0050.00317.26
8.0.260.0000.00617.18
8.0.250.0000.00716.95
8.0.240.0040.00416.90
8.0.230.0000.00717.00
8.0.220.0030.00316.77
8.0.210.0000.00816.76
8.0.200.0070.00316.82
8.0.190.0050.00316.94
8.0.180.0030.00616.87
8.0.170.0040.00416.95
8.0.160.0050.00316.85
8.0.150.0070.00016.79
8.0.140.0030.00616.73
8.0.130.0030.00313.26
8.0.120.0040.00416.86
8.0.110.0000.00716.94
8.0.100.0040.00416.95
8.0.90.0040.00416.82
8.0.80.0070.01116.81
8.0.70.0000.00816.90
8.0.60.0000.00717.00
8.0.50.0040.00416.68
8.0.30.0120.01017.06
8.0.20.0100.00917.40
8.0.10.0040.00416.92
8.0.00.0120.00616.94
7.4.330.0060.00015.08
7.4.320.0000.00616.45
7.4.300.0030.00316.54
7.4.290.0070.00316.45
7.4.280.0030.00516.35
7.4.270.0070.00016.54
7.4.260.0000.00716.34
7.4.250.0000.00816.51
7.4.240.0000.00716.47
7.4.230.0000.00716.61
7.4.220.0070.01116.48
7.4.210.0130.00316.48
7.4.200.0070.00016.51
7.4.160.0120.00416.47
7.4.150.0060.01317.40
7.4.140.0090.01217.86
7.4.130.0050.01416.37
7.4.120.0100.00716.40
7.4.110.0130.00316.39
7.4.100.0110.00716.43
7.4.90.0130.00616.61
7.4.80.0150.01219.39
7.4.70.0100.01016.43
7.4.60.0090.01016.41
7.4.50.0080.00816.45
7.4.40.0070.01016.34
7.4.30.0090.00616.47
7.4.00.0060.01115.08
7.3.330.0060.00013.13
7.3.320.0020.00212.94
7.3.310.0080.00016.34
7.3.300.0000.00616.20
7.3.290.0060.00916.21
7.3.280.0070.00916.22
7.3.270.0130.00317.40
7.3.260.0150.00516.32
7.3.250.0090.01016.21
7.3.240.0090.01116.38
7.3.230.0110.01116.57
7.3.210.0060.01216.34
7.3.200.0070.01416.53
7.3.190.0030.01316.39
7.3.180.0100.01016.41
7.3.170.0130.00316.47
7.3.160.0130.00616.23
7.3.120.0040.01514.95
7.3.110.0090.00714.63
7.3.100.0090.00614.70
7.3.90.0090.00914.45
7.3.80.0040.01214.76
7.3.70.0080.00414.61
7.3.60.0030.00614.71
7.3.50.0030.01014.88
7.3.40.0040.00414.74
7.3.30.0040.00914.75
7.3.20.0030.01016.57
7.3.10.0120.00516.67
7.3.00.0070.00716.69
7.2.330.0090.00916.65
7.2.320.0110.00716.38
7.2.310.0100.00716.61
7.2.300.0070.01016.14
7.2.290.0100.00716.62
7.2.250.0090.00914.71
7.2.240.0030.01615.09
7.2.230.0100.01015.00
7.2.220.0030.01314.79
7.2.210.0070.01014.56
7.2.200.0050.00514.91
7.2.190.0080.00314.94
7.2.180.0000.01114.86
7.2.170.0050.00514.87
7.2.130.0040.00716.77
7.2.120.0030.00616.47
7.2.110.0040.00916.77
7.2.100.0110.00416.52
7.2.90.0140.00316.69
7.2.80.0100.00316.82
7.2.70.0070.01016.71
7.2.60.0030.00916.80
7.2.50.0040.00716.75
7.2.40.0120.00616.49
7.2.30.0050.01016.81
7.2.20.0030.00816.70
7.2.10.0060.00716.84
7.2.00.0050.00918.03
7.1.330.0060.01015.79
7.1.320.0030.01015.60
7.1.310.0100.00315.53
7.1.300.0040.01115.49
7.1.290.0070.00715.62
7.1.280.0090.00315.49
7.1.270.0100.00315.55
7.1.260.0060.00615.70
7.1.250.0060.00615.39
7.1.200.0030.00715.74
7.1.70.0000.00716.91
7.1.60.0070.00319.87
7.1.00.0070.07322.24
7.0.200.0830.00714.88
7.0.70.0570.05020.02
7.0.60.0430.05719.94
7.0.50.0270.06020.43
7.0.40.0270.06020.32
7.0.30.0200.06720.43
7.0.20.0200.09320.30
7.0.10.0300.05320.37
7.0.00.0170.06720.26
5.6.280.0030.07020.89
5.6.220.0430.05020.73
5.6.210.0300.06020.62
5.6.200.0330.05721.08
5.6.190.0170.07021.13
5.6.180.0100.07021.05
5.6.170.0170.06321.01
5.6.160.0270.05321.08
5.6.150.0200.06021.07
5.6.140.0230.05321.02
5.6.130.0270.05321.02
5.6.120.0230.06321.01
5.6.110.0270.06021.08
5.6.100.0230.05721.07
5.6.90.0330.06021.14
5.6.80.0130.06720.36
5.6.70.0400.04020.44
5.6.60.0330.04320.47
5.6.50.0200.06020.46
5.6.40.0170.04720.52
5.6.30.0100.05320.43
5.6.20.0300.04720.44
5.6.10.0230.05720.47
5.6.00.0130.06320.42
5.5.360.0300.06720.59
5.5.350.0330.06320.42
5.5.340.0470.05320.93
5.5.330.0330.05320.93
5.5.320.0170.06320.84
5.5.310.0270.05020.89
5.5.300.0170.06320.86
5.5.290.0230.05720.86
5.5.280.0300.04320.97
5.5.270.0270.05720.86
5.5.260.0170.07020.91
5.5.250.0230.06020.67
5.5.240.0170.06320.34
5.5.230.0230.05720.21
5.5.220.0230.05320.14
5.5.210.0230.05320.21
5.5.200.0130.06320.22
5.5.190.0270.04720.25
5.5.180.0300.05020.21
5.5.160.0230.05320.27
5.5.150.0200.05720.29
5.5.140.0300.04720.21
5.5.130.0200.05720.21
5.5.120.0200.06020.27
5.5.110.0330.04320.29
5.5.100.0400.05020.17
5.5.90.0130.07320.01
5.5.80.0270.05020.17
5.5.70.0170.06020.04
5.5.60.0170.05720.08
5.5.50.0200.05320.00
5.5.40.0270.05020.21
5.5.30.0230.05320.05
5.5.20.0200.05320.08
5.5.10.0230.05320.03
5.5.00.0270.05020.16

preferences:
49.48 ms | 401 KiB | 5 Q