3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo array( array('s:6:"foobar";', 'foobar'), array('foobar', null), array('b:0;', false), array('O:1:"a":1:{s:5:"value";s:3:"100";}', null), array('O:8:"stdClass":1:{s:5:"field";O:8:"stdClass":0:{}}', null), array(serialize(array(1, 2, 3)), array(1, 2, 3)), array(serialize('string""'), 'string""'), array(serialize(array('foo' => 'bar')), array('foo' => 'bar')), array(serialize(array('1', new stdClass(), '2')), null), );?>

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.70.0110.00816.74
8.3.60.0080.00818.43
8.3.50.0120.00321.93
8.3.40.0140.00318.59
8.3.30.0110.00318.68
8.3.20.0050.00223.71
8.3.10.0000.00821.82
8.3.00.0040.00419.38
8.2.190.0080.00816.63
8.2.180.0000.01418.25
8.2.170.0070.01022.96
8.2.160.0000.01320.55
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0080.00017.96
8.2.120.0050.00326.35
8.2.110.0030.00622.11
8.2.100.0100.00318.03
8.2.90.0060.00317.75
8.2.80.0000.00920.54
8.2.70.0030.00617.91
8.2.60.0080.00017.93
8.2.50.0000.00818.10
8.2.40.0040.00422.32
8.2.30.0040.00419.16
8.2.20.0080.00017.98
8.2.10.0050.00318.07
8.2.00.0040.00417.56
8.1.280.0090.00925.92
8.1.270.0040.00420.20
8.1.260.0030.00726.35
8.1.250.0040.00428.09
8.1.240.0080.00022.11
8.1.230.0080.00319.16
8.1.220.0000.00917.74
8.1.210.0060.00318.77
8.1.200.0100.00317.35
8.1.190.0040.00417.25
8.1.180.0040.00418.10
8.1.170.0000.00818.75
8.1.160.0000.00718.75
8.1.150.0030.00320.33
8.1.140.0000.00719.52
8.1.130.0000.00618.96
8.1.120.0050.00317.27
8.1.110.0030.00517.28
8.1.100.0000.00717.39
8.1.90.0070.00017.34
8.1.80.0040.00417.32
8.1.70.0000.00717.43
8.1.60.0000.00917.50
8.1.50.0050.00217.45
8.1.40.0040.00417.37
8.1.30.0000.00817.60
8.1.20.0040.00417.60
8.1.10.0000.00817.49
8.1.00.0000.00717.46
8.0.300.0050.00221.64
8.0.290.0000.00816.75
8.0.280.0050.00218.44
8.0.270.0030.00317.18
8.0.260.0060.00017.27
8.0.250.0040.00416.94
8.0.240.0000.00717.03
8.0.230.0070.00016.96
8.0.220.0040.00416.93
8.0.210.0000.00716.87
8.0.200.0060.00016.97
8.0.190.0100.00016.98
8.0.180.0040.00416.91
8.0.170.0000.00716.94
8.0.160.0000.00716.84
8.0.150.0070.00016.70
8.0.140.0000.00716.92
8.0.130.0000.00513.23
8.0.120.0030.00516.75
8.0.110.0000.00716.77
8.0.100.0040.00416.77
8.0.90.0000.00716.88
8.0.80.0100.01016.88
8.0.70.0040.00416.80
8.0.60.0070.00016.79
8.0.50.0040.00416.84
8.0.30.0090.01016.99
8.0.20.0060.01217.40
8.0.10.0040.00417.09
8.0.00.0100.00616.76
7.4.330.0000.00615.55
7.4.320.0030.00316.47
7.4.300.0030.00316.52
7.4.290.0040.00416.44
7.4.280.0000.00716.44
7.4.270.0030.00316.53
7.4.260.0040.00716.42
7.4.250.0070.00016.44
7.4.240.0040.00416.34
7.4.230.0000.00716.64
7.4.220.0110.00716.55
7.4.210.0070.00716.57
7.4.200.0050.00316.61
7.4.160.0050.01016.49
7.4.150.0100.01017.40
7.4.140.0080.00817.86
7.4.130.0120.00616.51
7.4.120.0120.00816.41
7.4.110.0100.01016.43
7.4.100.0090.01216.72
7.4.90.0100.00716.21
7.4.80.0080.01119.39
7.4.70.0060.01016.47
7.4.60.0090.00616.51
7.4.50.0070.00316.58
7.4.40.0110.01116.52
7.4.30.0110.00516.61
7.4.10.0120.00315.14
7.4.00.0110.00615.14
7.3.330.0050.00013.11
7.3.320.0050.00013.11
7.3.310.0070.00016.36
7.3.300.0000.00816.07
7.3.290.0090.00616.24
7.3.280.0080.01016.27
7.3.270.0130.00717.40
7.3.260.0110.01216.39
7.3.250.0070.01016.30
7.3.240.0130.00616.30
7.3.230.0090.00616.59
7.3.210.0090.00616.26
7.3.200.0130.01016.27
7.3.190.0110.00616.47
7.3.180.0100.00716.46
7.3.170.0090.00616.52
7.3.160.0030.01316.43
7.3.130.0120.00614.96
7.3.120.0070.01014.80
7.3.110.0050.01114.66
7.3.100.0060.00814.40
7.3.90.0020.01214.76
7.3.80.0070.00514.98
7.3.70.0010.01114.62
7.3.60.0050.00914.53
7.3.50.0030.01014.62
7.3.40.0120.00214.73
7.3.30.0030.01014.60
7.3.20.0070.00516.52
7.3.10.0070.00416.64
7.3.00.0090.00516.56
7.2.330.0030.01316.61
7.2.320.0030.01416.64
7.2.310.0030.01416.47
7.2.300.0060.01316.66
7.2.290.0130.00316.58
7.2.260.0000.01115.24
7.2.250.0070.01014.93
7.2.240.0070.00814.70
7.2.230.0070.01214.92
7.2.220.0050.00715.04
7.2.210.0050.00914.80
7.2.200.0080.00714.88
7.2.190.0030.01014.90
7.2.180.0070.00514.93
7.2.170.0020.01114.87
7.2.160.0100.00314.92
7.2.150.0020.01516.70
7.2.140.0050.00716.89
7.2.130.0040.00916.72
7.2.120.0080.00616.64
7.2.110.0030.01216.81
7.2.100.0040.00716.79
7.2.90.0080.00816.48
7.2.80.0030.01316.67
7.2.70.0080.00616.90
7.2.60.0030.00816.81
7.2.50.0070.00516.79
7.2.40.0030.00816.76
7.2.30.0050.00516.61
7.2.20.0050.00716.60
7.2.10.0080.00316.78
7.2.00.0060.00617.63
7.1.330.0070.00915.67
7.1.320.0070.00715.65
7.1.310.0070.00515.63
7.1.300.0020.01415.72
7.1.290.0070.00515.66
7.1.280.0070.00515.62
7.1.270.0080.00515.57
7.1.260.0000.01215.72
7.1.250.0060.00815.54
7.1.240.0100.00715.34
7.1.230.0070.00715.48
7.1.220.0030.00515.35
7.1.210.0060.00615.82
7.1.200.0040.01015.68
7.1.190.0040.00815.41
7.1.180.0030.01015.70
7.1.170.0110.00415.64
7.1.160.0070.00715.60
7.1.150.0030.00615.52
7.1.140.0070.00415.64
7.1.130.0070.00715.53
7.1.120.0030.01015.70
7.1.110.0030.01015.77
7.1.100.0050.00916.77
7.1.90.0030.01115.63
7.1.80.0090.00915.76
7.1.70.0040.00716.11
7.1.60.0070.00716.34
7.1.50.0030.00816.14
7.1.40.0070.00715.74
7.1.30.0070.00715.48
7.1.20.0070.01015.56
7.1.10.0070.03218.93
7.1.00.0060.03118.91
7.0.330.0000.01115.48
7.0.320.0070.00715.39
7.0.310.0090.00314.93
7.0.300.0030.01015.11
7.0.290.0030.00915.28
7.0.280.0070.00715.32
7.0.270.0060.00614.96
7.0.260.0060.00915.39
7.0.250.0040.00715.21
7.0.240.0000.01015.40
7.0.230.0050.00515.09
7.0.220.0040.00415.14
7.0.210.0080.00415.37
7.0.200.0040.01615.91
7.0.190.0000.01515.44
7.0.180.0030.00615.05
7.0.170.0070.00315.39
7.0.160.0080.00815.32
7.0.150.0090.03018.65
7.0.140.0060.03618.57
7.0.130.0030.03318.41
7.0.120.0080.03018.45
7.0.110.0130.02718.45
7.0.100.0100.02718.63
7.0.90.0020.04318.46
7.0.80.0070.03218.63
7.0.70.0110.02518.60
7.0.60.0060.03118.50
7.0.50.0070.04218.48
7.0.40.0030.03217.65
7.0.30.0060.02817.66
7.0.20.0030.03417.46
7.0.10.0070.03217.61
7.0.00.0050.03117.63
5.6.400.0040.01114.59
5.6.390.0040.01014.40
5.6.380.0000.01114.25
5.6.370.0040.00814.50
5.6.360.0060.00614.25
5.6.350.0000.01114.61
5.6.340.0060.00314.21
5.6.330.0060.00914.05
5.6.320.0040.00414.01
5.6.310.0000.01314.50
5.6.300.0000.01114.23
5.6.290.0040.00713.94
5.6.280.0030.01314.17
5.6.270.0140.00014.39
5.6.260.0110.00414.20
5.6.250.0080.00414.46
5.6.240.0030.01014.48
5.6.230.0030.01213.99
5.6.220.0150.00014.32
5.6.210.0060.00314.08
5.6.200.0090.00314.15
5.6.190.0000.01114.34
5.6.180.0000.01214.04
5.6.170.0070.00714.32
5.6.160.0040.00814.33
5.6.150.0140.00314.09
5.6.140.0140.00014.04
5.6.130.0060.00914.02
5.6.120.0080.00614.27
5.6.110.0040.01214.51
5.6.100.0040.00814.04
5.6.90.0030.00714.11
5.6.80.0000.01314.23
5.6.70.0140.00014.14
5.6.60.0090.00414.21
5.6.50.0050.00314.08
5.6.40.0110.00414.39
5.6.30.0080.00814.23
5.6.20.0030.01014.21
5.6.10.0030.01014.02
5.6.00.0030.00614.19

preferences:
55.7 ms | 401 KiB | 5 Q