3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = [ "true", true, 1, "1", "false", false, 0, "0", "a string", "a string ", "a \x00\x00\x00string", "Array ( [0] => a [1] => b [2] => c )", "a string [13] => Array ( [0] => yeah, this is in fact still the same string as [12] )" ]; header("Content-type: text/plain"); print_r($a); var_dump($a);

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.4.120.0070.00224.00
8.4.110.0100.01023.81
8.4.100.0100.01018.90
8.4.90.0070.00520.58
8.4.80.0090.00917.51
8.4.70.0110.00717.75
8.4.60.0100.00918.61
8.4.50.0080.01018.44
8.4.40.0120.00619.12
8.4.30.0160.00317.66
8.4.20.0080.00817.58
8.4.10.0090.00019.38
8.3.250.0080.01118.83
8.3.240.0140.00617.01
8.3.230.0100.00716.54
8.3.220.0070.00816.88
8.3.210.0130.00518.41
8.3.200.0040.00516.39
8.3.190.0070.00916.65
8.3.180.0110.00716.24
8.3.170.0120.00620.35
8.3.160.0070.01116.98
8.3.150.0090.00617.06
8.3.140.0120.00316.38
8.3.130.0000.00818.26
8.3.120.0090.00318.70
8.3.110.0050.00520.94
8.3.100.0060.00318.42
8.3.90.0000.01426.77
8.3.80.0030.00618.30
8.3.70.0040.01418.43
8.3.60.0100.01018.43
8.3.50.0150.00721.98
8.3.40.0110.00418.84
8.3.30.0070.00718.64
8.3.20.0040.00421.94
8.3.10.0040.00422.05
8.3.00.0000.00919.25
8.2.290.0100.00920.54
8.2.280.0050.00416.74
8.2.270.0150.00317.15
8.2.260.0070.00216.47
8.2.250.0030.00616.31
8.2.240.0080.00018.79
8.2.230.0070.00422.58
8.2.220.0040.00424.06
8.2.210.0080.00026.77
8.2.200.0040.00416.63
8.2.190.0140.00716.58
8.2.180.0060.01525.92
8.2.170.0140.00718.79
8.2.160.0030.01022.96
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0070.00017.84
8.2.120.0020.00526.35
8.2.110.0040.00719.16
8.2.100.0060.00617.59
8.2.90.0090.00017.63
8.2.80.0050.00318.84
8.2.70.0000.00817.50
8.2.60.0050.00317.50
8.2.50.0030.00617.55
8.2.40.0040.00419.35
8.2.30.0040.00420.99
8.2.20.0000.00717.89
8.2.10.0070.00017.90
8.2.00.0070.00017.67
8.1.330.0160.00421.90
8.1.320.0130.00615.79
8.1.310.0040.00416.55
8.1.300.0060.00915.88
8.1.290.0060.00330.84
8.1.280.0120.00325.92
8.1.270.0130.00321.93
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00319.22
8.1.230.0080.00417.57
8.1.220.0070.00017.74
8.1.210.0000.00818.77
8.1.200.0030.00617.22
8.1.190.0000.00817.10
8.1.180.0050.00318.10
8.1.170.0030.00617.62
8.1.160.0040.00418.87
8.1.150.0040.00420.32
8.1.140.0000.00819.51
8.1.130.0000.00618.94
8.1.120.0030.00517.31
8.1.110.0050.00217.38
8.1.100.0040.00417.40
8.1.90.0030.00417.44
8.1.80.0000.00817.43
8.1.70.0040.00417.35
8.1.60.0040.00417.50
8.1.50.0030.00617.45
8.1.40.0040.00417.42
8.1.30.0080.00017.46
8.1.20.0000.00717.65
8.1.10.0030.00617.44
8.1.00.0040.00817.38
8.0.300.0070.00020.62
8.0.290.0000.00716.63
8.0.280.0030.00318.29
8.0.270.0030.00717.21
8.0.260.0040.00417.20
8.0.250.0030.00616.88
8.0.240.0030.00316.89
8.0.230.0040.00416.91
8.0.220.0000.00816.71
8.0.210.0030.00316.84
8.0.200.0030.00716.88
8.0.190.0000.00816.77
8.0.180.0050.00216.73
8.0.170.0020.00516.76
8.0.160.0040.00316.82
8.0.150.0080.00016.77
8.0.140.0070.00016.79
8.0.130.0000.00513.29
8.0.120.0040.00416.72
8.0.110.0040.00416.61
8.0.100.0070.00016.81
8.0.90.0030.00616.82
8.0.80.0090.00916.89
8.0.70.0080.00016.94
8.0.60.0030.00616.94
8.0.50.0070.00016.86
8.0.30.0130.00817.06
8.0.20.0090.00917.40
8.0.10.0050.00317.07
8.0.00.0090.01416.56
7.4.330.0020.00215.55
7.4.320.0040.00416.35
7.4.300.0000.00616.45
7.4.290.0030.00416.54
7.4.280.0080.00016.45
7.4.270.0030.00316.37
7.4.260.0040.00416.32
7.4.250.0030.00316.47
7.4.240.0050.00316.43
7.4.230.0000.00716.28
7.4.220.0070.01316.35
7.4.210.0060.00916.47
7.4.200.0000.00716.50
7.4.160.0080.00816.47
7.4.150.0090.00917.40
7.4.140.0140.00517.86
7.4.130.0120.00616.38
7.4.120.0110.01016.45
7.4.110.0110.01216.47
7.4.100.0120.00616.43
7.4.90.0120.00616.14
7.4.80.0070.01019.39
7.4.70.0110.00716.31
7.4.60.0080.00816.31
7.4.50.0030.01216.50
7.4.40.0070.01416.43
7.4.30.0090.00816.29
7.4.00.0020.01314.69
7.3.330.0060.00013.12
7.3.320.0040.00412.97
7.3.310.0070.00016.02
7.3.300.0000.00715.99
7.3.290.0090.00716.12
7.3.280.0060.01116.13
7.3.270.0000.01717.40
7.3.260.0160.00616.38
7.3.250.0080.01016.18
7.3.240.0150.00416.21
7.3.230.0100.01416.54
7.3.210.0060.01016.24
7.3.200.0130.00316.47
7.3.190.0080.00916.16
7.3.180.0120.00816.54
7.3.170.0070.01516.34
7.3.160.0060.00916.56
7.3.120.0110.00714.46
7.3.110.0030.01614.92
7.3.100.0130.00614.62
7.3.90.0070.00714.45
7.3.80.0060.00914.59
7.3.70.0100.00714.74
7.3.60.0040.00814.57
7.3.50.0060.00614.61
7.3.40.0070.00314.41
7.3.30.0060.01014.65
7.3.20.0030.01216.58
7.3.10.0070.00716.45
7.3.00.0030.01016.39
7.2.330.0120.00916.20
7.2.320.0100.00716.24
7.2.310.0140.00616.36
7.2.300.0130.01016.61
7.2.290.0030.01416.47
7.2.250.0100.00714.73
7.2.240.0070.01315.10
7.2.230.0090.00914.96
7.2.220.0030.01415.07
7.2.210.0110.00314.63
7.2.200.0070.01014.81
7.2.190.0030.01214.89
7.2.180.0030.01014.65
7.2.170.0030.01315.00
7.2.60.0030.01216.44
7.2.50.0120.01216.70
7.1.330.0080.00615.88
7.1.320.0040.00815.86
7.1.310.0030.01315.66
7.1.300.0050.00515.39
7.1.290.0040.01215.48
7.1.280.0030.00915.58
7.1.270.0080.00415.73
7.1.260.0030.00915.55
7.1.200.0000.01515.69
7.1.70.0000.00716.88
7.1.60.0030.00717.19
7.1.10.0070.09022.24
7.1.00.0130.05322.41
7.0.200.0070.01016.82
7.0.150.0030.07021.80
7.0.140.0070.06321.82
7.0.130.0070.07021.91
7.0.120.0170.05022.02
7.0.110.0170.05721.82
7.0.100.0030.06021.96
7.0.90.0030.07021.93
7.0.80.0070.06022.02
7.0.70.0130.05021.89
7.0.60.0000.06721.89
7.0.50.0070.05721.91
7.0.40.0070.07021.92
7.0.30.0000.06321.99
7.0.20.0130.05721.93
7.0.10.0130.05021.86
7.0.00.0030.06721.84

preferences:
27.25 ms | 403 KiB | 5 Q