3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo 'this is a simple string'; echo 'You can also have embedded newlines in strings this way as it is okay to do'; // Outputs: Arnold once said: "I'll be back" echo 'Arnold once said: "I\'ll be back"'; // Outputs: You deleted C:\*.*? echo 'You deleted C:\\*.*?'; // Outputs: You deleted C:\*.*? echo 'You deleted C:\*.*?'; // Outputs: This will not expand: \n a newline echo 'This will not expand: \n a newline'; // Outputs: Variables do not $expand $either echo 'Variables do not $expand $either'; ?>

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.0110.00318.20
8.3.50.0100.00717.90
8.3.40.0100.00618.88
8.3.30.0090.00618.57
8.3.20.0080.00018.74
8.3.10.0080.00021.86
8.3.00.0040.00423.65
8.2.180.0040.01518.41
8.2.170.0090.01222.96
8.2.160.0110.01119.32
8.2.150.0110.00424.18
8.2.140.0040.00424.66
8.2.130.0030.00620.52
8.2.120.0000.00726.35
8.2.110.0140.00721.12
8.2.100.0040.00817.72
8.2.90.0050.00219.45
8.2.80.0090.00017.97
8.2.70.0040.00417.93
8.2.60.0040.00417.80
8.2.50.0040.00418.10
8.2.40.0040.00419.09
8.2.30.0040.00419.16
8.2.20.0050.00317.83
8.2.10.0040.00417.83
8.2.00.0040.00419.26
8.1.280.0140.00025.92
8.1.270.0000.00720.43
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0090.00022.53
8.1.230.0030.00721.03
8.1.220.0060.00317.74
8.1.210.0090.00018.90
8.1.200.0060.00317.11
8.1.190.0060.00617.10
8.1.180.0040.00418.10
8.1.170.0090.00018.91
8.1.160.0070.00018.67
8.1.150.0030.00318.66
8.1.140.0040.00417.56
8.1.130.0070.00018.94
8.1.120.0000.00817.34
8.1.110.0070.00017.30
8.1.100.0000.00817.21
8.1.90.0000.00817.38
8.1.80.0050.00617.34
8.1.70.0030.00617.30
8.1.60.0090.00017.49
8.1.50.0080.00417.29
8.1.40.0000.00717.43
8.1.30.0040.00717.46
8.1.20.0000.01017.41
8.1.10.0040.00417.51
8.1.00.0000.00717.31
8.0.300.0040.00419.97
8.0.290.0070.00316.63
8.0.280.0050.00218.33
8.0.270.0040.00317.22
8.0.260.0000.00617.18
8.0.250.0000.00816.82
8.0.240.0080.00016.89
8.0.230.0000.01116.85
8.0.220.0070.00016.78
8.0.210.0040.00316.80
8.0.200.0030.00716.78
8.0.190.0050.00316.87
8.0.180.0030.00516.80
8.0.170.0080.00016.67
8.0.160.0050.00216.77
8.0.150.0040.00416.69
8.0.140.0000.00716.57
8.0.130.0000.00613.14
8.0.120.0100.00016.71
8.0.110.0080.00016.66
8.0.100.0020.00516.57
8.0.90.0000.00716.79
8.0.80.0050.01016.76
8.0.70.0050.00216.87
8.0.60.0000.00816.78
8.0.50.0000.00716.58
8.0.30.0070.00917.11
8.0.20.0090.01117.40
8.0.10.0050.00216.79
8.0.00.0120.00716.48
7.4.330.0020.00215.55
7.4.320.0000.00616.30
7.4.300.0070.00016.32
7.4.290.0000.00716.38
7.4.280.0090.00016.27
7.4.270.0070.00016.38
7.4.260.0000.00716.45
7.4.250.0030.00316.35
7.4.240.0050.00216.52
7.4.230.0030.00316.55
7.4.220.0000.00716.20
7.4.210.0030.01216.37
7.4.200.0050.00216.38
7.4.160.0120.00516.40
7.4.140.0110.00817.86
7.4.130.0100.01316.37
7.4.120.0090.00816.46
7.4.110.0160.00316.43
7.4.100.0070.01016.29
7.4.90.0120.00916.46
7.4.80.0030.01319.39
7.4.70.0100.01316.46
7.4.60.0070.00716.42
7.4.50.0030.01016.22
7.4.40.0070.01016.33
7.4.10.0070.01115.37
7.4.00.0090.00915.24
7.3.330.0030.00313.03
7.3.320.0030.00312.86
7.3.310.0040.00416.11
7.3.300.0070.00016.00
7.3.290.0060.00016.05
7.3.280.0090.00616.18
7.3.260.0100.00916.38
7.3.240.0080.01116.26
7.3.230.0100.00716.43
7.3.210.0060.00916.23
7.3.200.0090.01616.43
7.3.190.0100.00616.17
7.3.180.0060.00916.10
7.3.170.0090.00616.15
7.3.160.0100.01016.17
7.3.130.0080.00915.13
7.3.120.0070.01115.11
7.3.110.0070.01015.17
7.3.100.0050.01015.07
7.3.90.0060.01115.14
7.3.80.0100.00615.02
7.3.70.0060.00714.95
7.3.60.0070.00715.12
7.3.50.0040.01115.02
7.3.40.0060.00915.06
7.3.30.0060.00815.15
7.3.20.0030.00816.83
7.3.10.0040.00916.84
7.3.00.0060.00716.85
7.2.330.0100.01016.24
7.2.320.0100.00716.59
7.2.310.0140.00716.39
7.2.300.0090.01416.57
7.2.290.0110.00716.34
7.2.260.0070.01015.34
7.2.250.0070.01115.27
7.2.240.0060.00915.24
7.2.230.0060.01115.22
7.2.220.0080.01115.25
7.2.210.0090.00315.30
7.2.200.0050.00815.33
7.2.190.0050.00915.32
7.2.180.0050.00815.24
7.2.170.0040.01215.29
7.2.160.0010.01315.20
7.2.150.0020.00917.19
7.2.140.0070.00717.18
7.2.130.0030.01216.99
7.2.120.0070.00717.14
7.2.110.0040.01017.00
7.2.100.0050.00916.96
7.2.90.0060.00916.92
7.2.80.0030.01117.04
7.2.70.0090.00916.54
7.2.60.0100.00816.59
7.2.50.0100.00916.56
7.2.40.0080.01016.69
7.2.30.0090.00716.68
7.2.20.0090.00816.56
7.2.10.0150.00616.52
7.2.00.0060.00916.67
7.1.330.0040.01115.94
7.1.320.0070.00916.07
7.1.310.0070.00716.09
7.1.300.0050.00516.00
7.1.290.0120.00216.08
7.1.280.0020.00916.01
7.1.270.0050.00716.03
7.1.260.0010.01016.08
7.1.250.0070.00415.88
7.1.240.0030.00816.02
7.1.230.0070.00716.04
7.1.220.0030.01115.90
7.1.210.0050.00616.03
7.1.200.0040.00816.02
7.1.190.0020.01116.06
7.1.180.0080.00515.96
7.1.170.0120.00515.31
7.1.160.0210.00715.54
7.1.150.0100.00715.39
7.1.140.0110.00615.39
7.1.130.0130.00515.47
7.1.120.0080.00815.44
7.1.110.0100.00615.56
7.1.100.0110.00715.44
7.1.90.0110.01015.46
7.1.80.0090.00915.49
7.1.70.0100.00715.48
7.1.60.0180.00719.99
7.1.50.0130.01220.14
7.1.40.0190.00619.74
7.1.30.0160.00619.91
7.1.20.0140.00719.81
7.1.10.0110.00715.48
7.1.00.0100.00715.23
7.0.330.0020.01015.63
7.0.320.0050.00915.73
7.0.310.0060.00615.77
7.0.300.0050.00615.75
7.0.290.0070.00715.77
7.0.280.0080.00415.79
7.0.270.0060.00815.78
7.0.260.0080.00715.78
7.0.250.0060.00715.76
7.0.240.0060.00915.88
7.0.230.0110.00315.75
7.0.220.0070.00615.69
7.0.210.0070.00515.71
7.0.200.0050.00915.62
7.0.190.0050.00915.82
7.0.180.0060.00715.76
7.0.170.0060.01015.67
7.0.160.0090.00615.74
7.0.150.0060.00915.80
7.0.140.0030.00915.74
7.0.130.0040.00915.76
7.0.120.0090.00615.82
7.0.110.0040.00715.73
7.0.100.0070.00415.74
7.0.90.0040.00815.73
7.0.80.0010.01115.79
7.0.70.0010.01315.73
7.0.60.0040.00815.80
7.0.50.0050.00715.93
7.0.40.0020.01013.94
7.0.30.0040.00713.71
7.0.20.0040.00813.64
7.0.10.0070.00813.69
7.0.00.0060.00813.78
5.6.400.0040.00914.79
5.6.390.0050.00914.45
5.6.380.0020.01314.49
5.6.370.0010.01114.53
5.6.360.0080.00814.85
5.6.350.0080.00614.66
5.6.340.0070.00514.70
5.6.330.0060.00614.53
5.6.320.0070.00914.52
5.6.310.0050.00714.82
5.6.300.0050.00914.71
5.6.290.0030.01214.66
5.6.280.0020.00914.45
5.6.270.0110.00314.79
5.6.260.0060.00814.66
5.6.250.0060.00714.74
5.6.240.0040.00714.65
5.6.230.0090.00614.53
5.6.220.0080.00714.62
5.6.210.0080.00714.47
5.6.200.0060.00614.65
5.6.190.0070.00414.77
5.6.180.0060.00614.58
5.6.170.0060.00814.61
5.6.160.0090.00614.40
5.6.150.0070.01014.59
5.6.140.0020.01114.50
5.6.130.0030.00914.65
5.6.120.0040.00714.58
5.6.110.0070.00714.68
5.6.100.0010.01514.46
5.6.90.0050.00914.52
5.6.80.0050.01114.45
5.6.70.0060.01014.56
5.6.60.0050.00714.70
5.6.50.0060.00614.63
5.6.40.0060.00614.57
5.6.30.0060.00814.44
5.6.20.0030.00914.44
5.6.10.0030.01114.49
5.6.00.0060.00914.50

preferences:
50.9 ms | 400 KiB | 5 Q