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.63
8.3.60.0170.00318.30
8.3.50.0130.00622.72
8.3.40.0150.00318.50
8.3.30.0120.00318.52
8.3.20.0040.00420.21
8.3.10.0040.00421.82
8.3.00.0030.00519.66
8.2.190.0100.01016.58
8.2.180.0170.00318.41
8.2.170.0140.00022.96
8.2.160.0150.00019.25
8.2.150.0030.00524.18
8.2.140.0080.00024.66
8.2.130.0040.00422.08
8.2.120.0080.00026.35
8.2.110.0040.00422.09
8.2.100.0120.00020.30
8.2.90.0040.00419.32
8.2.80.0080.00018.22
8.2.70.0000.00917.80
8.2.60.0030.00618.03
8.2.50.0060.00618.10
8.2.40.0040.00422.14
8.2.30.0080.00019.23
8.2.20.0080.00017.78
8.2.10.0000.00717.97
8.2.00.0000.00918.05
8.1.280.0070.00725.92
8.1.270.0000.00723.85
8.1.260.0080.00028.09
8.1.250.0040.00428.09
8.1.240.0090.00023.88
8.1.230.0040.00719.10
8.1.220.0060.00317.74
8.1.210.0000.00818.77
8.1.200.0000.00817.35
8.1.190.0000.00817.11
8.1.180.0080.00018.10
8.1.170.0060.00318.46
8.1.160.0030.00322.15
8.1.150.0070.00318.71
8.1.140.0000.00719.51
8.1.130.0040.00417.62
8.1.120.0040.00417.40
8.1.110.0040.00417.42
8.1.100.0050.00217.28
8.1.90.0080.00017.29
8.1.80.0000.00817.39
8.1.70.0000.00717.39
8.1.60.0000.00717.53
8.1.50.0060.00317.52
8.1.40.0000.01117.46
8.1.30.0030.00617.55
8.1.20.0000.00717.65
8.1.10.0040.00417.53
8.1.00.0040.00417.48
8.0.300.0040.00419.66
8.0.290.0040.00416.63
8.0.280.0070.00018.44
8.0.270.0030.00317.16
8.0.260.0000.00617.23
8.0.250.0030.00316.93
8.0.240.0000.00716.96
8.0.230.0070.00016.99
8.0.220.0070.00016.88
8.0.210.0070.00016.89
8.0.200.0080.00316.95
8.0.190.0000.00816.93
8.0.180.0000.00716.76
8.0.170.0030.00616.85
8.0.160.0040.00416.80
8.0.150.0030.00316.80
8.0.140.0030.00316.89
8.0.130.0000.00513.38
8.0.120.0000.00816.71
8.0.110.0040.00416.93
8.0.100.0000.00716.75
8.0.90.0050.00316.88
8.0.80.0070.00816.83
8.0.70.0040.00416.68
8.0.60.0050.00316.76
8.0.50.0040.00416.75
8.0.30.0070.01316.89
8.0.20.0100.01117.40
8.0.10.0040.00416.94
8.0.00.0070.01516.78
7.4.330.0030.00315.08
7.4.320.0000.00616.54
7.4.300.0070.00016.57
7.4.290.0000.00716.38
7.4.280.0000.00716.32
7.4.270.0030.00316.46
7.4.260.0030.00316.43
7.4.250.0000.00816.45
7.4.240.0030.00316.44
7.4.230.0000.00716.27
7.4.220.0070.02016.64
7.4.210.0080.00816.30
7.4.200.0020.00516.34
7.4.160.0110.00416.44
7.4.150.0120.00617.40
7.4.140.0080.00817.86
7.4.130.0080.00916.51
7.4.120.0070.01016.41
7.4.110.0040.01316.54
7.4.100.0110.00616.35
7.4.90.0100.00716.38
7.4.80.0030.01319.39
7.4.70.0110.00516.48
7.4.60.0100.00716.31
7.4.50.0100.00616.34
7.4.40.0030.01316.38
7.4.30.0140.00716.36
7.4.00.0060.01014.94
7.3.330.0030.00313.09
7.3.320.0030.00313.04
7.3.310.0000.00816.26
7.3.300.0000.00716.06
7.3.290.0090.00816.19
7.3.280.0080.01016.17
7.3.270.0100.01217.40
7.3.260.0060.01016.38
7.3.250.0150.00416.38
7.3.240.0070.00916.24
7.3.230.0060.01016.39
7.3.210.0130.01016.39
7.3.200.0120.00416.38
7.3.190.0060.01316.32
7.3.180.0180.00016.21
7.3.170.0080.00816.44
7.3.160.0110.01216.29
7.3.120.0070.01115.00
7.3.110.0060.00914.96
7.3.100.0100.01014.86
7.3.90.0030.01014.70
7.3.80.0000.00914.50
7.3.70.0090.00414.66
7.3.60.0030.00614.60
7.3.50.0090.00314.80
7.3.40.0040.00414.73
7.3.30.0070.00714.64
7.3.20.0090.00616.57
7.3.10.0060.00616.43
7.3.00.0070.00316.50
7.2.330.0110.00716.31
7.2.320.0090.00616.73
7.2.310.0180.00016.54
7.2.300.0110.01616.33
7.2.290.0150.00616.34
7.2.250.0040.01614.85
7.2.240.0120.00615.07
7.2.230.0150.00014.81
7.2.220.0030.01314.54
7.2.210.0000.01114.75
7.2.200.0110.00415.08
7.2.190.0040.01414.86
7.2.180.0040.00714.84
7.2.170.0070.00314.91
7.2.160.0090.00614.62
7.2.150.0000.01616.82
7.2.140.0060.00616.81
7.2.130.0070.00816.85
7.2.120.0060.00816.66
7.2.110.0050.00716.57
7.2.100.0120.00516.75
7.2.90.0110.00116.90
7.2.80.0090.00316.74
7.2.70.0030.00716.74
7.2.60.0100.01216.79
7.2.50.0080.00316.84
7.2.40.0030.01016.72
7.2.30.0030.01116.72
7.2.20.0060.00916.84
7.2.10.0060.00916.84
7.2.00.0060.00717.56
7.1.330.0100.00715.26
7.1.320.0060.00615.75
7.1.310.0030.01015.75
7.1.300.0000.00915.49
7.1.290.0070.00415.67
7.1.280.0060.00615.54
7.1.270.0060.00915.75
7.1.260.0100.00315.57
7.1.250.0060.00815.68
7.1.240.0030.00615.43
7.1.230.0090.00015.70
7.1.220.0090.00615.57
7.1.210.0090.00615.57
7.1.200.0050.00515.56
7.1.190.0130.00015.35
7.1.180.0070.00715.68
7.1.170.0030.00715.72
7.1.160.0000.01415.67
7.1.150.0090.00315.35
7.1.140.0000.01215.58
7.1.130.0060.00615.67
7.1.120.0080.00415.67
7.1.110.0030.00915.75
7.1.100.0040.00815.50
7.1.90.0060.00915.84
7.1.80.0000.01115.50
7.1.70.0070.00516.27
7.1.60.0080.01016.52
7.1.50.0000.00915.53
7.1.40.0070.00315.86
7.1.30.0080.00415.68
7.1.20.0030.00615.79
7.1.10.0120.00315.79
7.1.00.0030.04318.98
7.0.330.0060.00615.31
7.0.320.0100.00315.11
7.0.310.0060.00615.34
7.0.300.0070.00715.32
7.0.290.0030.01015.35
7.0.280.0030.01415.49
7.0.270.0000.01115.38
7.0.260.0000.01215.32
7.0.250.0090.00315.30
7.0.240.0060.00615.20
7.0.230.0040.00715.23
7.0.220.0060.00615.28
7.0.210.0000.01615.17
7.0.200.0020.00816.04
7.0.190.0100.00315.38
7.0.180.0060.00615.57
7.0.170.0030.00715.14
7.0.160.0090.00015.22
7.0.150.0090.00315.48
7.0.140.0070.01115.44
7.0.130.0090.00615.59
7.0.120.0070.00715.49
7.0.110.0030.01015.26
7.0.100.0130.03317.52
7.0.90.0090.04217.63
7.0.80.0100.04017.57
7.0.70.0150.03417.58
7.0.60.0060.03817.50
7.0.50.0020.03117.87
7.0.40.0030.02916.75
7.0.30.0050.02316.80
7.0.20.0050.02716.75
7.0.10.0030.03016.79
7.0.00.0080.02616.69
5.6.400.0060.00914.14
5.6.390.0060.00914.46
5.6.380.0090.00614.32
5.6.370.0030.01014.34
5.6.360.0070.01014.38
5.6.350.0050.00514.10
5.6.340.0070.00414.13
5.6.330.0000.01514.51
5.6.320.0130.00014.31
5.6.310.0110.00313.98
5.6.300.0090.00614.19
5.6.290.0080.00414.19
5.6.280.0030.04017.47
5.6.270.0030.01014.26
5.6.260.0030.00714.51
5.6.250.0020.04717.32
5.6.240.0070.04017.40
5.6.230.0070.03217.41
5.6.220.0100.04417.38
5.6.210.0130.02017.42
5.6.200.0050.04317.60
5.6.190.0070.03017.68
5.6.180.0060.02817.72
5.6.170.0050.02817.55
5.6.160.0090.02717.62
5.6.150.0030.02817.65
5.6.140.0050.02517.62
5.6.130.0030.02517.77
5.6.120.0040.02717.61
5.6.110.0060.02617.51
5.6.100.0000.02917.78
5.6.90.0020.04217.56
5.6.80.0090.03917.26
5.6.70.0050.02217.25
5.6.60.0110.03817.30
5.6.50.0060.02517.28
5.6.40.0080.03017.24
5.6.30.0060.02217.39
5.6.20.0030.02517.31
5.6.10.0070.02217.34
5.6.00.0040.02917.32
5.5.380.0020.04917.24
5.5.370.0080.02217.13
5.5.360.0080.03317.38
5.5.350.0120.02517.05
5.5.340.0050.04617.51
5.5.330.0080.03017.59
5.5.320.0030.02717.65
5.5.310.0020.02917.42
5.5.300.0030.02617.52
5.5.290.0060.02117.37
5.5.280.0030.02817.70
5.5.270.0080.02317.68
5.5.260.0040.02217.44
5.5.250.0020.03017.37
5.5.240.0050.04217.11
5.5.230.0070.03617.04
5.5.220.0030.03417.24
5.5.210.0040.02617.19
5.5.200.0050.02217.20
5.5.190.0030.02617.21
5.5.180.0060.02217.13
5.5.170.0080.00813.97
5.5.160.0040.02417.26
5.5.150.0070.02217.22
5.5.140.0070.02017.17
5.5.130.0030.02717.10
5.5.120.0030.02416.90
5.5.110.0060.02416.99
5.5.100.0030.02517.04
5.5.90.0070.01917.10
5.5.80.0050.02317.19
5.5.70.0070.02017.19
5.5.60.0000.02716.97
5.5.50.0020.02517.12
5.5.40.0050.02217.13
5.5.30.0030.02316.93
5.5.20.0030.02817.15
5.5.10.0000.02416.90
5.5.00.0050.02217.00
5.4.450.0030.04019.45
5.4.440.0000.04319.36
5.4.430.0130.03019.35
5.4.420.0030.04319.57
5.4.410.0070.03319.10
5.4.400.0000.04019.08
5.4.390.0000.04019.14
5.4.380.0030.03718.79
5.4.370.0070.03319.14
5.4.360.0030.05719.08
5.4.350.0070.05319.20
5.4.340.0030.03719.22
5.4.320.0030.04018.90
5.4.310.0100.03319.10
5.4.300.0030.03719.07
5.4.290.0070.03319.23
5.4.280.0030.06719.02
5.4.270.0070.04018.98
5.4.260.0070.03718.96
5.4.250.0030.04018.96
5.4.240.0070.03319.09
5.4.230.0030.03718.96
5.4.220.0000.04019.06
5.4.210.0070.03019.05
5.4.200.0030.03718.95
5.4.190.0030.03719.04
5.4.180.0100.03319.07
5.4.170.0030.04018.97
5.4.160.0000.04018.88
5.4.150.0030.04019.09
5.4.140.0100.07016.29
5.4.130.0000.08016.30
5.4.120.0070.07316.28
5.4.110.0170.05316.48
5.4.100.0070.04016.27
5.4.90.0070.06016.21
5.4.80.0070.07016.29
5.4.70.0100.07716.36
5.4.60.0100.06716.30
5.4.50.0100.03316.18
5.4.40.0030.07716.40
5.4.30.0100.03716.23
5.4.20.0000.07016.27
5.4.10.0130.06716.33
5.4.00.0000.07715.71
5.3.290.0030.04014.51
5.3.280.0000.04314.45
5.3.270.0000.04314.42
5.3.260.0000.04314.42
5.3.250.0100.04714.55
5.3.240.0070.07314.44
5.3.230.0030.08014.45
5.3.220.0100.07714.47
5.3.210.0070.07714.51
5.3.200.0030.08014.38
5.3.190.0000.03714.42
5.3.180.0070.06314.53
5.3.170.0030.07714.54
5.3.160.0130.06314.52
5.3.150.0070.05714.38
5.3.140.0030.04314.56
5.3.130.0070.07314.53
5.3.120.0130.06014.49
5.3.110.0070.07314.50
5.3.100.0030.08013.95
5.3.90.0030.07313.96
5.3.80.0100.06313.78
5.3.70.0030.07013.97
5.3.60.0070.07013.99
5.3.50.0100.04013.80
5.3.40.0270.05713.91
5.3.30.0000.07713.84
5.3.20.0030.05013.66
5.3.10.0100.06313.63
5.3.00.0070.05013.59
5.2.170.0070.05312.49
5.2.160.0030.06312.49
5.2.150.0000.07012.49
5.2.140.0170.05312.49
5.2.130.0070.03012.49
5.2.120.0070.03312.49
5.2.110.0130.05712.49
5.2.100.0070.04312.49
5.2.90.0100.03712.49
5.2.80.0070.06312.49
5.2.70.0030.06312.49
5.2.60.0030.06712.49
5.2.50.0000.06312.49
5.2.40.0070.06012.49
5.2.30.0130.05312.49
5.2.20.0000.03312.49
5.2.10.0000.05712.49
5.2.00.0070.06012.49
5.1.60.0170.04012.49
5.1.50.0070.04712.49
5.1.40.0070.04712.49
5.1.30.0030.04712.49
5.1.20.0000.04012.49
5.1.10.0030.04712.49
5.1.00.0130.04312.49
5.0.50.0030.02712.49
5.0.40.0030.04312.49
5.0.30.0030.05712.49
5.0.20.0070.03312.49
5.0.10.0030.04012.49
5.0.00.0000.06712.49
4.4.90.0000.03312.49
4.4.80.0000.03712.49
4.4.70.0030.03712.49
4.4.60.0030.02712.49
4.4.50.0000.03712.49
4.4.40.0000.03712.49
4.4.30.0030.01712.49
4.4.20.0000.02312.49
4.4.10.0000.03012.49
4.4.00.0100.04712.49
4.3.110.0030.03312.49
4.3.100.0030.01712.49
4.3.90.0030.03312.49
4.3.80.0030.04012.49
4.3.70.0030.02012.49
4.3.60.0000.03312.49
4.3.50.0070.02312.49
4.3.40.0030.05012.49
4.3.30.0030.01712.49
4.3.20.0030.03312.49
4.3.10.0000.03712.49
4.3.00.0030.02712.49

preferences:
53.9 ms | 401 KiB | 5 Q