3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "testing\n", PHP_EOL, 'testing\n', PHP_EOL; echo urlencode("testing\n"), PHP_EOL, urlencode('testing\n'), PHP_EOL; echo addcslashes("testing\n", '\n'), PHP_EOL, addcslashes('testing\n', '\n'), PHP_EOL; echo urlencode(addcslashes("testing\n", '\n')), PHP_EOL, urlencode(addcslashes('testing\n', '\n')), PHP_EOL; echo addcslashes("testing\n", "\n"), PHP_EOL, addcslashes('testing\n', "\n"), PHP_EOL; echo urlencode(addcslashes("testing\n", "\n")), PHP_EOL, urlencode(addcslashes('testing\n', "\n")), PHP_EOL;

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.5.30.0090.00819.14
8.5.20.0110.00919.64
8.5.10.0130.00718.13
8.5.00.0160.00919.80
8.4.180.0110.01221.95
8.4.170.0130.00923.78
8.4.160.0130.00923.00
8.4.150.0040.00216.82
8.4.140.0100.01117.64
8.4.130.0100.01017.99
8.4.120.0120.00820.80
8.4.110.0110.01122.65
8.4.100.0100.01117.68
8.4.90.0140.00718.48
8.4.80.0060.00317.70
8.4.70.0090.00317.57
8.4.60.0140.00918.84
8.4.50.0150.00719.45
8.4.40.0070.01317.52
8.4.30.0060.00319.59
8.4.20.0070.00319.38
8.4.10.0040.00417.58
8.3.300.0070.01320.82
8.3.290.0120.01020.78
8.3.280.0120.00918.16
8.3.270.0130.00616.74
8.3.260.0100.00916.39
8.3.250.0080.01018.72
8.3.240.0120.00416.79
8.3.230.0020.00616.50
8.3.220.0070.00718.86
8.3.210.0080.01016.56
8.3.200.0090.01016.68
8.3.190.0080.01116.73
8.3.180.0090.00616.53
8.3.170.0060.01316.20
8.3.160.0040.01316.46
8.3.150.0140.00416.89
8.3.140.0040.01516.48
8.3.130.0050.00317.93
8.3.120.0060.00320.78
8.3.110.0040.01220.94
8.3.100.0110.00724.06
8.3.90.0040.00426.77
8.3.80.0050.00518.18
8.3.70.0140.00316.38
8.3.60.0120.00916.50
8.3.50.0050.01116.37
8.3.40.0040.01418.71
8.3.30.0040.01118.59
8.3.20.0040.00421.90
8.3.10.0080.00023.66
8.3.00.0040.00419.56
8.2.300.0110.00918.02
8.2.290.0120.00620.13
8.2.280.0050.00318.60
8.2.270.0070.01116.50
8.2.260.0030.01418.76
8.2.250.0130.00316.65
8.2.240.0040.00418.75
8.2.230.0170.00322.58
8.2.220.0130.00637.54
8.2.210.0110.00726.77
8.2.200.0040.00416.13
8.2.190.0110.00416.63
8.2.180.0060.00916.50
8.2.170.0100.01022.96
8.2.160.0100.00720.72
8.2.150.0070.00024.18
8.2.140.0050.00324.66
8.2.130.0040.00420.35
8.2.120.0040.00426.35
8.2.110.0070.00321.02
8.2.100.0060.00617.70
8.2.90.0050.00319.14
8.2.80.0040.00417.97
8.2.70.0000.00817.89
8.2.60.0000.00817.50
8.2.50.0040.00418.10
8.2.40.0000.00822.08
8.2.30.0050.00219.43
8.2.20.0030.00617.99
8.2.10.0030.00617.53
8.2.00.0040.00417.84
8.1.340.0100.01017.51
8.1.330.0120.00723.72
8.1.320.0100.00916.24
8.1.310.0040.01118.57
8.1.300.0030.00616.29
8.1.290.0060.00330.84
8.1.280.0090.00625.92
8.1.270.0040.00423.72
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0000.00823.88
8.1.230.0090.00317.75
8.1.220.0050.00317.74
8.1.210.0060.00318.77
8.1.200.0060.00317.10
8.1.190.0080.00017.00
8.1.180.0060.00318.10
8.1.170.0040.00419.09
8.1.160.0040.00418.77
8.1.150.0070.00018.86
8.1.140.0040.00417.49
8.1.130.0030.00519.00
8.1.120.0000.00717.31
8.1.110.0000.00817.35
8.1.100.0000.00717.38
8.1.90.0080.00017.34
8.1.80.0040.00417.33
8.1.70.0030.00317.26
8.1.60.0000.00817.43
8.1.50.0080.00017.44
8.1.40.0040.00417.40
8.1.30.0000.00717.55
8.1.20.0000.00817.49
8.1.10.0000.00717.47
8.1.00.0000.00817.25
8.0.300.0040.00418.77
8.0.290.0000.00716.63
8.0.280.0030.00318.39
8.0.270.0030.00317.07
8.0.260.0070.00016.80
8.0.250.0000.00716.93
8.0.240.0030.00616.77
8.0.230.0030.00316.88
8.0.220.0070.00016.83
8.0.210.0000.00716.81
8.0.200.0030.00316.81
8.0.190.0070.00016.69
8.0.180.0030.00316.68
8.0.170.0040.00416.72
8.0.160.0000.00716.89
8.0.150.0070.00016.65
8.0.140.0000.00816.71
8.0.130.0030.00313.24
8.0.120.0050.00216.77
8.0.110.0040.00416.77
8.0.100.0040.00416.65
8.0.90.0000.00816.65
8.0.80.0070.01016.73
8.0.70.0000.00716.66
8.0.60.0000.00716.79
8.0.50.0000.00716.80
8.0.30.0130.00716.97
8.0.20.0150.00417.40
8.0.10.0000.00716.83
8.0.00.0080.01316.88
7.4.330.0050.00015.55
7.4.320.0030.00316.52
7.4.300.0030.00316.53
7.4.290.0050.00316.37
7.4.280.0000.00716.34
7.4.270.0000.00716.41
7.4.260.0060.00016.47
7.4.250.0000.00716.42
7.4.240.0040.00416.31
7.4.230.0000.00716.41
7.4.220.0000.00816.55
7.4.210.0050.01116.52
7.4.200.0040.00416.22
7.4.160.0090.00616.29
7.4.140.0110.00817.86
7.4.130.0060.01216.46
7.4.120.0130.00616.36
7.4.110.0080.01216.24
7.4.100.0110.00516.50
7.4.90.0170.00916.37
7.4.80.0120.01219.39
7.4.70.0130.00416.32
7.4.60.0100.00716.21
7.4.50.0110.00816.51
7.4.40.0040.01416.50
7.4.00.0100.00714.78
7.3.330.0050.00012.98
7.3.320.0060.00013.09
7.3.310.0070.00016.10
7.3.300.0000.00616.01
7.3.290.0050.00216.05
7.3.280.0040.01116.15
7.3.260.0110.00816.44
7.3.240.0080.01016.31
7.3.230.0150.00816.39
7.3.210.0060.01316.10
7.3.200.0120.00916.09
7.3.190.0070.01016.48
7.3.180.0090.01216.51
7.3.170.0110.00616.49
7.3.160.0100.00516.30
7.3.120.0110.00714.51
7.3.110.0100.00714.58
7.3.100.0050.00814.70
7.3.90.0060.00814.79
7.3.80.0090.00514.93
7.3.70.0090.00414.45
7.3.60.0080.00414.54
7.3.50.0020.01214.56
7.3.40.0040.01114.73
7.3.30.0030.00714.57
7.3.20.0050.01116.46
7.3.10.0050.00916.48
7.3.00.0060.00716.22
7.2.330.0070.01116.54
7.2.320.0050.01116.61
7.2.310.0090.00616.51
7.2.300.0040.01216.28
7.2.290.0030.01416.36
7.2.250.0040.01115.03
7.2.240.0050.01314.71
7.2.230.0060.01114.69
7.2.220.0070.00514.95
7.2.210.0070.00714.84
7.2.200.0080.00514.75
7.2.190.0070.00915.01
7.2.180.0040.01415.05
7.2.170.0080.01014.79
7.2.160.0070.01014.70
7.2.150.0080.00816.66
7.2.140.0040.01116.51
7.2.130.0060.00816.61
7.2.120.0060.00916.69
7.2.110.0050.00916.62
7.2.100.0060.00816.57
7.2.90.0080.00616.65
7.2.80.0080.00616.65
7.2.70.0080.00916.75
7.2.60.0070.00716.81
7.2.50.0070.00816.77
7.2.40.0040.00916.68
7.2.30.0060.01016.97
7.2.20.0080.00717.00
7.2.10.0110.00716.98
7.2.00.0090.00717.00
7.1.330.0050.00915.70
7.1.320.0040.01015.55
7.1.310.0080.00615.62
7.1.300.0050.01115.75
7.1.290.0020.01015.68
7.1.280.0040.00715.59
7.1.270.0040.00815.39
7.1.260.0020.01015.59
7.1.250.0070.00515.43
7.1.200.0060.00615.66
7.1.150.0070.01216.51
7.1.140.0100.01516.68
7.1.130.0120.01416.73
7.1.120.0110.00916.56
7.1.110.0190.01015.88
7.1.100.0120.01316.05
7.1.90.0090.00915.97
7.1.80.0280.01416.29
7.1.70.0070.01115.19
7.1.60.0220.01332.98
7.1.50.0250.01132.80
7.1.40.0350.01332.68
7.1.30.0240.01532.57
7.1.20.0190.01832.63
7.1.10.0810.01014.55
7.1.00.0040.01214.60

preferences:
109.65 ms | 1602 KiB | 5 Q