3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo serialize(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.60.0000.01518.43
8.3.50.0070.00717.93
8.3.40.0150.00318.52
8.3.30.0040.01118.61
8.3.20.0080.00023.67
8.3.10.0050.00221.75
8.3.00.0040.00419.11
8.2.180.0120.00918.18
8.2.170.0110.00422.96
8.2.160.0070.00720.50
8.2.150.0000.00724.18
8.2.140.0060.00324.66
8.2.130.0000.00818.09
8.2.120.0040.00426.35
8.2.110.0100.00022.25
8.2.100.0040.00817.91
8.2.90.0040.00417.63
8.2.80.0040.00420.53
8.2.70.0000.00817.80
8.2.60.0000.00818.21
8.2.50.0000.00818.10
8.2.40.0050.00322.27
8.2.30.0000.00719.21
8.2.20.0040.00418.04
8.2.10.0050.00218.07
8.2.00.0050.00217.52
8.1.280.0070.01125.92
8.1.270.0040.00420.29
8.1.260.0070.00326.35
8.1.250.0050.00328.09
8.1.240.0030.00622.19
8.1.230.0040.00719.07
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0090.00317.35
8.1.190.0030.00617.23
8.1.180.0040.00418.10
8.1.170.0040.00418.72
8.1.160.0000.00718.84
8.1.150.0040.00420.31
8.1.140.0040.00419.53
8.1.130.0030.00318.87
8.1.120.0040.00417.40
8.1.110.0000.00817.37
8.1.100.0000.00717.40
8.1.90.0070.00017.38
8.1.80.0040.00417.37
8.1.70.0030.00317.48
8.1.60.0000.00717.47
8.1.50.0040.00417.39
8.1.40.0060.00317.53
8.1.30.0030.00617.48
8.1.20.0050.00317.51
8.1.10.0000.00817.56
8.1.00.0020.00517.45
8.0.300.0000.00921.44
8.0.290.0000.00816.75
8.0.280.0030.00318.41
8.0.270.0040.00417.16
8.0.260.0000.00617.16
8.0.250.0040.00417.04
8.0.240.0000.00716.88
8.0.230.0000.00616.91
8.0.220.0070.00016.74
8.0.210.0000.00816.76
8.0.200.0030.00316.80
8.0.190.0060.00316.81
8.0.180.0050.00216.82
8.0.170.0040.00416.92
8.0.160.0000.00716.84
8.0.150.0000.00716.84
8.0.140.0040.00416.71
8.0.130.0000.00613.32
8.0.120.0080.00016.77
8.0.110.0040.00416.84
8.0.100.0040.00416.91
8.0.90.0000.00716.72
8.0.80.0090.00616.89
8.0.70.0050.00216.85
8.0.60.0000.00816.74
8.0.50.0050.00316.77
8.0.30.0140.00517.13
8.0.20.0090.01017.40
8.0.10.0000.00717.09
8.0.00.0070.01016.80
7.4.330.0030.00315.55
7.4.320.0000.00716.52
7.4.300.0030.00316.51
7.4.290.0030.00316.55
7.4.280.0030.00616.50
7.4.270.0080.00016.53
7.4.260.0100.00016.52
7.4.250.0050.00316.29
7.4.240.0000.00816.57
7.4.230.0020.00516.28
7.4.220.0120.01216.40
7.4.210.0110.01016.42
7.4.200.0050.00216.26
7.4.160.0030.01216.49
7.4.150.0090.01017.40
7.4.140.0110.01017.86
7.4.130.0090.01016.54
7.4.120.0110.00716.50
7.4.110.0120.00816.51
7.4.100.0100.00616.48
7.4.90.0120.00616.57
7.4.80.0100.00719.39
7.4.70.0100.00616.47
7.4.60.0100.00716.43
7.4.50.0070.01016.32
7.4.40.0130.00316.45
7.4.30.0120.00316.50
7.4.00.0100.00314.82
7.3.330.0030.00313.06
7.3.320.0000.00513.14
7.3.310.0000.00616.28
7.3.300.0060.00016.13
7.3.290.0050.01116.25
7.3.280.0060.01116.24
7.3.270.0110.00717.40
7.3.260.0100.01116.33
7.3.250.0150.00616.35
7.3.240.0080.01216.50
7.3.230.0060.01016.50
7.3.210.0070.01016.47
7.3.200.0040.01816.43
7.3.190.0070.01116.25
7.3.180.0060.01616.18
7.3.170.0110.00416.63
7.3.160.0040.01216.20
7.3.00.0000.01216.54
7.2.330.0060.01216.61
7.2.320.0030.01516.68
7.2.310.0080.00816.45
7.2.300.0150.00916.56
7.2.290.0160.00016.46
7.2.130.0070.01016.64
7.2.120.0070.00717.02
7.2.110.0020.01116.71
7.2.100.0060.00316.78
7.2.90.0110.00416.79
7.2.80.0040.01117.16
7.2.70.0110.00316.89
7.2.60.0090.00316.67
7.2.50.0050.00616.78
7.2.40.0030.01016.97
7.2.30.0060.00616.73
7.2.20.0140.00317.06
7.2.10.0000.01217.14
7.2.00.0090.00316.73
7.1.250.0080.00415.66
7.1.240.0000.00815.74
7.1.230.0060.00615.64
7.1.220.0070.00415.58
7.1.210.0080.00815.54
7.1.200.0050.00715.53
7.1.190.0060.00615.58
7.1.180.0030.00615.36
7.1.170.0030.00615.73
7.1.160.0080.00315.84
7.1.150.0040.01115.63
7.1.140.0030.01015.80
7.1.130.0070.00415.61
7.1.120.0030.01015.36
7.1.110.0050.00515.38
7.1.100.0070.00715.70
7.1.90.0040.00715.44
7.1.80.0090.00415.60
7.1.70.0060.00516.14
7.1.60.0100.00516.47
7.1.50.0000.01215.67
7.1.40.0030.00715.63
7.1.30.0080.00415.58
7.1.20.0000.00815.45
7.1.10.0020.03718.88
7.1.00.0070.04019.05
7.0.330.0080.00414.84
7.0.320.0040.00415.20
7.0.310.0030.00615.20
7.0.300.0070.01015.10
7.0.290.0060.00615.09
7.0.280.0030.00515.30
7.0.270.0090.00015.03
7.0.260.0000.01215.15
7.0.250.0070.00315.28
7.0.240.0000.01015.27
7.0.230.0100.00315.37
7.0.220.0080.00815.35
7.0.210.0070.00315.15
7.0.200.0030.00815.90
7.0.190.0060.00615.49
7.0.180.0000.01014.98
7.0.170.0040.00815.23
7.0.160.0070.00315.33
7.0.150.0070.03018.48
7.0.140.0030.03318.59
7.0.130.0070.03818.62
7.0.120.0070.03018.50
7.0.110.0020.03818.59
7.0.100.0080.02818.63
7.0.90.0040.04818.58
7.0.80.0080.04418.43
7.0.70.0070.04318.47
7.0.60.0100.03018.61
7.0.50.0070.04018.37
7.0.40.0010.03417.52
7.0.30.0030.03717.45
7.0.20.0020.03417.59
7.0.10.0100.04117.66
7.0.00.0070.03217.53
5.6.380.0100.00314.39

preferences:
61.31 ms | 401 KiB | 5 Q