3v4l.org

run code in 300+ PHP versions simultaneously
<?php //Enter your code here, enjoy! $resultCode = ''; $args = array('\0x27bla', 'bla1'); $resultCode .= "'".mysql_escape_string(array_shift($args))."'"; print_r($resultCode);

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.0100.00716.50
8.3.50.0130.00618.06
8.3.40.0110.00418.72
8.3.30.0110.00418.59
8.3.20.0070.00020.09
8.3.10.0000.00823.66
8.3.00.0040.00419.79
8.2.180.0130.00918.41
8.2.170.0110.01122.96
8.2.160.0150.00020.35
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0050.00319.20
8.2.120.0050.00326.16
8.2.110.0030.00722.27
8.2.100.0040.00817.92
8.2.90.0040.00419.22
8.2.80.0040.00417.97
8.2.70.0060.00317.60
8.2.60.0110.00517.30
8.2.50.0080.00018.07
8.2.40.0000.00822.34
8.2.30.0040.00420.62
8.2.20.0000.00817.71
8.2.10.0040.00418.06
8.2.00.0000.00717.96
8.1.270.0030.00620.33
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0080.00023.97
8.1.230.0030.00719.16
8.1.220.0030.00617.76
8.1.210.0050.00318.77
8.1.200.0060.00317.35
8.1.190.0040.00417.35
8.1.180.0000.00818.10
8.1.170.0060.00318.57
8.1.160.0070.00020.61
8.1.150.0000.00818.73
8.1.140.0040.00419.41
8.1.130.0050.00217.51
8.1.120.0070.00017.28
8.1.110.0040.00417.39
8.1.100.0070.00017.29
8.1.90.0030.00517.26
8.1.80.0100.00017.38
8.1.70.0030.00317.36
8.1.60.0040.00417.57
8.1.50.0050.00317.58
8.1.40.0040.00417.40
8.1.30.0000.01017.65
8.1.20.0040.00417.69
8.1.10.0000.00817.53
8.1.00.0000.01217.49
8.0.300.0050.00318.77
8.0.290.0040.00416.63
8.0.280.0040.00418.43
8.0.270.0000.00717.21
8.0.260.0000.00617.05
8.0.250.0030.00316.86
8.0.240.0030.00316.93
8.0.230.0000.00716.87
8.0.220.0000.00816.78
8.0.210.0030.00316.81
8.0.200.0030.00316.90
8.0.190.0030.00716.95
8.0.180.0040.00416.84
8.0.170.0000.00716.98
8.0.160.0070.00016.93
8.0.150.0080.00016.94
8.0.140.0040.00416.68
8.0.130.0000.00513.28
8.0.120.0040.00416.85
8.0.110.0050.00216.79
8.0.100.0040.00416.89
8.0.90.0080.00016.82
8.0.80.0090.00916.83
8.0.70.0040.00416.85
8.0.60.0000.00716.81
8.0.50.0000.00716.70
8.0.30.0120.00517.02
8.0.20.0120.00917.40
8.0.10.0040.00416.95
8.0.00.0120.00716.69
7.4.330.0020.00216.67
7.4.320.0060.00016.38
7.4.300.0070.00016.50
7.4.290.0030.00316.48
7.4.280.0040.00416.58
7.4.270.0000.00716.49
7.4.260.0030.00316.46
7.4.250.0000.00716.52
7.4.240.0000.00716.54
7.4.230.0070.00016.52
7.4.220.0100.01516.50
7.4.210.0090.00716.43
7.4.200.0000.00716.39
7.4.160.0090.00616.50
7.4.150.0160.00317.40
7.4.140.0080.01317.86
7.4.130.0070.01016.46
7.4.120.0080.01116.56
7.4.110.0120.01216.52
7.4.100.0090.01316.26
7.4.90.0040.01216.54
7.4.80.0080.00819.39
7.4.70.0150.00316.46
7.4.60.0070.01016.59
7.4.50.0080.00816.30
7.4.40.0140.00416.58
7.4.30.0090.00916.45
7.4.00.0050.01214.96
7.3.330.0000.00513.23
7.3.320.0050.00013.00
7.3.310.0030.00316.12
7.3.300.0000.00616.26
7.3.290.0030.00316.25
7.3.280.0110.00616.22
7.3.270.0130.00317.40
7.3.260.0090.00716.32
7.3.250.0050.01216.32
7.3.240.0090.00816.38
7.3.230.0040.01216.43
7.3.210.0060.01516.39
7.3.200.0070.01116.32
7.3.190.0130.01016.25
7.3.180.0000.01516.58
7.3.170.0090.01216.27
7.3.160.0030.01316.29
7.3.120.0060.01114.92
7.3.110.0090.00614.81
7.3.100.0020.01114.82
7.3.90.0060.00814.68
7.3.80.0100.00714.72
7.3.70.0030.01114.73
7.3.60.0020.01314.71
7.3.50.0120.00414.53
7.3.40.0060.00914.74
7.3.30.0030.01214.64
7.3.20.0050.01016.49
7.3.10.0070.00516.43
7.3.00.0030.00816.50
7.2.330.0100.00716.49
7.2.320.0140.00416.64
7.2.310.0140.00416.57
7.2.300.0040.01216.57
7.2.290.0070.01716.51
7.2.250.0070.01014.83
7.2.240.0070.00614.68
7.2.230.0070.00914.96
7.2.220.0040.01014.94
7.2.210.0080.00814.92
7.2.200.0050.01114.78
7.2.190.0060.01014.76
7.2.180.0030.01114.82
7.2.170.0020.01414.96
7.2.160.0000.01414.73
7.2.150.0040.01416.91
7.2.140.0090.00616.64
7.2.130.0060.01016.76
7.2.120.0080.00316.75
7.2.110.0040.01216.73
7.2.100.0030.01016.48
7.2.90.0080.00816.63
7.2.80.0100.00716.76
7.2.70.0040.01416.71
7.2.60.0070.00516.84
7.2.50.0100.00716.69
7.2.40.0040.01216.73
7.2.30.0040.00816.50
7.2.20.0040.01516.68
7.2.10.0120.00016.79
7.2.00.0050.00917.92
7.1.330.0050.00915.52
7.1.320.0080.00615.50
7.1.310.0070.00515.49
7.1.300.0050.01115.50
7.1.290.0090.00615.47
7.1.280.0070.00715.47
7.1.270.0060.00615.55
7.1.260.0050.00715.39
7.1.250.0060.00915.67
7.1.200.0060.00615.69
7.1.100.0140.01417.99
7.1.70.0070.00716.99
7.1.60.0030.01219.52
7.1.50.0150.00616.99
7.1.00.0000.08022.42
7.0.200.0100.00016.65
7.0.60.0070.03720.06
7.0.50.0100.03717.76
7.0.40.0030.04320.22
7.0.30.0330.07720.13
7.0.20.0330.04020.09
7.0.10.0030.04720.33
7.0.00.0030.08320.18
5.6.280.0030.03321.09
5.6.210.0100.07020.47
5.6.200.0100.06718.10
5.6.190.0070.07720.56
5.6.180.0330.04020.35
5.6.170.0170.05020.37
5.6.160.0070.06020.37
5.6.150.0070.03718.18
5.6.140.0030.04318.21
5.6.130.0100.05318.21
5.6.120.0000.04321.01
5.6.110.0000.07320.98
5.6.100.0170.07021.10
5.6.90.0070.06021.09
5.6.80.0100.07320.43
5.5.350.0230.08020.34
5.5.340.0030.08318.00
5.5.330.0000.04320.06
5.5.320.0630.07020.20
5.5.310.0230.07720.24
5.5.300.0130.07018.01
5.5.290.0030.06017.90
5.5.280.0170.06720.96
5.5.270.0030.04020.78
5.5.260.0030.04020.78
5.5.250.0130.03320.70
5.5.240.3600.03320.36

preferences:
57.02 ms | 400 KiB | 5 Q