3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = "Hello 🤖"; $chop = substr($test, 0, 8); //Doh! This will crash almost all multibyte aware functions... $json = json_encode($chop); var_dump(json_last_error_msg(), $json);

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.0090.00618.48
8.3.50.0160.00016.26
8.3.40.0000.01518.29
8.3.30.0100.00718.44
8.3.20.0040.00420.34
8.3.10.0080.00023.48
8.3.00.0050.00319.26
8.2.180.0070.01116.47
8.2.170.0120.00322.96
8.2.160.0110.00422.17
8.2.150.0070.00024.18
8.2.140.0030.00624.66
8.2.130.0000.00822.07
8.2.120.0040.00426.16
8.2.110.0070.00321.09
8.2.100.0080.00419.40
8.2.90.0000.00719.25
8.2.80.0040.00420.50
8.2.70.0040.00417.25
8.2.60.0030.00517.80
8.2.50.0040.00418.16
8.2.40.0040.00420.39
8.2.30.0070.00419.18
8.2.20.0040.00417.99
8.2.10.0000.00718.03
8.2.00.0000.00918.24
8.1.280.0180.00425.92
8.1.270.0080.00020.00
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0040.00422.19
8.1.230.0080.00420.96
8.1.220.0000.00817.74
8.1.210.0080.00018.93
8.1.200.0040.00417.23
8.1.190.0100.00017.23
8.1.180.0040.00418.10
8.1.170.0050.00318.57
8.1.160.0040.00418.70
8.1.150.0060.00320.18
8.1.140.0040.00417.63
8.1.130.0070.00320.00
8.1.120.0030.00317.41
8.1.110.0040.00417.28
8.1.100.0000.00917.39
8.1.90.0030.00617.42
8.1.80.0030.00517.41
8.1.70.0000.00717.36
8.1.60.0000.00817.41
8.1.50.0060.00617.47
8.1.40.0040.00417.46
8.1.30.0040.00417.54
8.1.20.0030.00617.48
8.1.10.0000.00717.44
8.1.00.0000.00817.27
8.0.300.0070.00019.96
8.0.290.0080.00016.63
8.0.280.0070.00018.29
8.0.270.0070.00017.17
8.0.260.0030.00318.38
8.0.250.0030.00416.93
8.0.240.0030.00316.84
8.0.230.0030.00516.82
8.0.220.0070.00016.71
8.0.210.0030.00316.80
8.0.200.0040.00716.92
8.0.190.0040.00416.91
8.0.180.0070.00016.89
8.0.170.0030.00616.87
8.0.160.0050.00316.72
8.0.150.0070.00016.77
8.0.140.0040.00416.69
8.0.130.0030.00313.21
8.0.120.0040.00416.68
8.0.110.0040.00416.82
8.0.100.0030.00316.83
8.0.90.0000.00716.85
8.0.80.0030.01216.81
8.0.70.0030.00516.87
8.0.60.0030.00416.67
8.0.50.0070.00016.64
8.0.30.0110.00717.09
8.0.20.0120.00717.40
8.0.10.0030.00516.84
8.0.00.0150.00716.67
7.4.330.0050.00015.55
7.4.320.0060.00016.50
7.4.300.0000.00716.46
7.4.290.0000.00716.35
7.4.280.0050.00516.52
7.4.270.0030.00316.36
7.4.260.0000.00716.52
7.4.250.0000.00716.52
7.4.240.0030.00316.57
7.4.230.0000.00716.61
7.4.220.0020.00516.57
7.4.210.0040.01116.51
7.4.200.0030.00316.27
7.4.160.0130.00416.47
7.4.150.0090.00917.40
7.4.140.0100.00817.86
7.4.130.0100.00716.40
7.4.120.0120.00616.35
7.4.110.0110.00516.38
7.4.100.0130.00316.48
7.4.90.0120.01216.41
7.4.80.0030.01719.39
7.4.70.0180.00516.56
7.4.60.0150.00616.34
7.4.50.0080.00416.42
7.4.40.0140.00316.35
7.4.00.0070.01014.82
7.3.330.0050.00012.89
7.3.320.0030.00312.98
7.3.310.0030.00316.13
7.3.300.0060.00016.10
7.3.290.0130.00616.14
7.3.280.0050.01016.21
7.3.270.0070.01417.40
7.3.260.0110.00816.30
7.3.250.0140.00516.19
7.3.240.0080.01216.21
7.3.230.0130.00516.17
7.3.210.0080.00816.07
7.3.200.0080.00816.03
7.3.190.0140.00316.18
7.3.180.0000.02016.38
7.3.170.0090.00916.13
7.3.160.0120.00416.35
7.3.120.0080.00914.72
7.3.110.0070.00814.50
7.3.100.0050.00814.59
7.3.90.0050.00814.77
7.3.80.0040.00814.52
7.3.70.0080.00614.68
7.3.60.0040.00914.52
7.3.50.0030.00914.55
7.3.40.0050.01014.79
7.3.30.0090.00514.46
7.3.20.0060.00616.57
7.3.10.0040.00616.54
7.3.00.0050.00716.49
7.2.330.0070.01016.31
7.2.320.0110.00716.46
7.2.310.0130.00316.68
7.2.300.0110.00816.37
7.2.290.0060.01016.36
7.2.250.0040.01414.90
7.2.240.0080.00814.93
7.2.230.0070.00914.86
7.2.220.0030.01115.00
7.2.210.0090.00614.96
7.2.200.0080.00714.76
7.2.190.0050.00614.86
7.2.180.0020.01114.82
7.2.170.0070.00814.84
7.2.60.0130.00016.84
7.2.10.0140.01118.20
7.2.00.0120.01218.34
7.1.330.0020.01215.81
7.1.320.0070.00515.67
7.1.310.0060.00915.65
7.1.300.0050.00915.72
7.1.290.0040.00615.81
7.1.280.0050.00915.61
7.1.270.0070.00815.78
7.1.260.0070.00715.65
7.1.200.0310.00315.63
7.1.130.0090.01417.22
7.1.120.0360.00917.25
7.1.110.0130.00916.61
7.1.100.0250.00816.39
7.1.90.0150.00616.48
7.1.80.0120.01016.56
7.1.70.0130.01215.78
7.1.60.0280.00733.70
7.1.50.0190.01333.33
7.1.40.0250.01333.12
7.1.30.0430.00833.18
7.1.20.0230.01833.35
7.1.10.0130.00815.23
7.1.00.0150.00715.36

preferences:
56.95 ms | 401 KiB | 5 Q