3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test implements Serializable { public $data = array(); public function serialize() { return serialize($this->data); } public function unserialize($serialized) { } } class Record implements Serializable { public $data = array(); public function __construct() { $object = new StdClass(); $object->property = 'whoa'; $test = new Test(); $test->data = array(1,2,3); $this->data = array( 'array' => array(1,2,3,5), 'object' => $object, 'test' => $test, 'string' => '12345', 'integer' => 123455 ); } public function serialize() { return serialize($this->data); } public function unserialize($serialized) { } } $object = new Record(); var_dump(serialize($object));

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.0040.01118.68
8.3.50.0070.01222.02
8.3.40.0120.00318.84
8.3.30.0110.00319.10
8.3.20.0030.00520.38
8.3.10.0060.00323.45
8.3.00.0040.00419.18
8.2.180.0140.00716.75
8.2.170.0110.00422.96
8.2.160.0100.00720.29
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0030.00520.71
8.2.110.0030.00622.20
8.2.100.0070.00420.37
8.2.90.0000.00819.38
8.2.80.0080.00017.97
8.2.70.0080.00017.75
8.2.60.0030.00618.04
8.2.50.0000.00918.07
8.2.40.0050.00320.01
8.2.30.0080.00018.22
8.2.20.0080.00017.86
8.2.10.0050.00318.04
8.2.00.0040.00417.62
8.1.280.0170.00325.92
8.1.270.0060.00323.61
8.1.260.0000.00726.35
8.1.250.0080.00028.09
8.1.240.0060.00323.86
8.1.230.0070.00419.16
8.1.220.0030.00617.74
8.1.210.0080.00018.77
8.1.200.0030.00617.36
8.1.190.0060.00317.35
8.1.180.0000.00818.10
8.1.170.0040.00418.64
8.1.160.0000.00821.89
8.1.150.0050.00218.63
8.1.140.0040.00417.46
8.1.130.0030.00317.83
8.1.120.0000.00717.52
8.1.110.0050.00317.46
8.1.100.0040.00417.49
8.1.90.0000.00917.43
8.1.80.0080.00017.50
8.1.70.0030.00317.40
8.1.60.0030.00617.59
8.1.50.0050.00317.42
8.1.40.0030.00617.54
8.1.30.0060.00317.61
8.1.20.0080.00017.59
8.1.10.0000.00817.52
8.1.00.0080.00017.45
8.0.300.0000.00718.77
8.0.290.0070.00016.75
8.0.280.0000.00718.41
8.0.270.0030.00317.37
8.0.260.0040.00417.33
8.0.250.0040.00417.00
8.0.240.0040.00416.95
8.0.230.0070.00016.91
8.0.220.0030.00416.85
8.0.210.0070.00016.79
8.0.200.0000.00716.85
8.0.190.0040.00416.84
8.0.180.0080.00016.84
8.0.170.0030.00516.94
8.0.160.0000.00816.91
8.0.150.0000.00816.89
8.0.140.0000.00816.83
8.0.130.0000.00613.32
8.0.120.0040.00416.86
8.0.110.0040.00416.79
8.0.100.0040.00416.89
8.0.90.0050.00316.84
8.0.80.0110.01116.96
8.0.70.0000.00716.86
8.0.60.0050.00316.77
8.0.50.0070.00016.79
8.0.30.0130.00917.04
8.0.20.0140.01117.40
8.0.10.0040.00417.05
8.0.00.0080.01316.81
7.4.330.0020.00215.07
7.4.320.0030.00316.50
7.4.300.0000.00616.56
7.4.290.0030.00316.61
7.4.280.0050.00216.36
7.4.270.0050.00216.60
7.4.260.0030.00316.47
7.4.250.0050.00216.53
7.4.240.0020.00516.57
7.4.230.0030.00316.69
7.4.220.0060.01116.48
7.4.210.0040.01116.59
7.4.200.0030.00316.60
7.4.190.0040.00416.77
7.4.160.0060.00916.54
7.4.150.0060.01117.40
7.4.140.0090.01117.86
7.4.130.0060.01116.44
7.4.120.0070.00916.50
7.4.110.0170.00716.36
7.4.100.0030.01616.53
7.4.90.0110.00616.48
7.4.80.0110.01119.39
7.4.70.0000.02016.56
7.4.60.0110.01116.45
7.4.50.0000.00716.36
7.4.40.0070.01016.71
7.4.30.0120.00416.70
7.4.00.0090.00614.93
7.3.330.0000.00713.21
7.3.320.0050.00013.25
7.3.310.0000.00716.20
7.3.300.0000.00716.27
7.3.290.0070.01416.45
7.3.280.0080.01016.41
7.3.270.0120.00617.40
7.3.260.0200.00316.68
7.3.250.0120.00516.61
7.3.240.0000.01716.59
7.3.230.0130.01016.39
7.3.210.0100.01016.69
7.3.200.0100.00719.39
7.3.190.0030.01616.50
7.3.180.0090.00916.48
7.3.170.0050.01216.31
7.3.160.0080.00816.57
7.3.120.0060.00914.54
7.2.330.0110.00716.37
7.2.320.0130.00316.74
7.2.310.0110.01116.74
7.2.300.0100.00716.30
7.2.290.0070.01016.40
7.2.60.0000.01216.63
7.2.50.0080.00616.98
7.1.200.0070.00315.91
7.1.70.0050.00517.21
7.1.60.0040.00817.31
7.1.50.0100.01316.97
7.1.00.0000.08022.54
7.0.200.0070.01116.73
7.0.140.0070.07022.09
7.0.120.0100.04322.09
7.0.110.0070.06021.97
7.0.100.0000.06722.11
7.0.90.0070.08722.09
7.0.80.0030.08022.01
7.0.70.0070.04022.00
7.0.60.0070.05722.03
7.0.50.0030.04021.99
7.0.40.0030.08320.03
7.0.30.0070.04720.13
7.0.20.0230.06019.98
7.0.10.0070.07320.13
7.0.00.0070.05319.98
5.6.280.0170.06021.11
5.6.270.0000.08721.09
5.6.260.0000.07020.94
5.6.250.0070.04720.91
5.6.240.0130.08321.07
5.6.230.0070.08020.81
5.6.220.0070.04020.99
5.6.210.0100.06020.84
5.6.200.0030.05020.70
5.6.190.0070.04020.89
5.6.180.0070.04720.89
5.6.170.0030.07720.71
5.6.160.0030.08720.79
5.6.150.0030.08320.78
5.6.140.0100.07720.75
5.6.130.0030.09021.03
5.6.120.0000.04720.96
5.6.110.0070.03720.77
5.6.100.0070.07720.76
5.6.90.0130.07020.98
5.6.80.0000.07720.39
5.6.70.0070.07320.26
5.6.60.0070.07320.25
5.6.50.0070.06720.40
5.6.40.0100.03720.15
5.6.30.0070.08020.15
5.6.20.0070.07720.14
5.6.10.0070.07720.33
5.6.00.0070.08020.39
5.5.380.0070.08017.56
5.5.370.0070.06717.48
5.5.360.0000.06317.54
5.5.350.0000.04717.58
5.5.340.0100.07317.92
5.5.330.0030.04718.25
5.5.320.0130.07018.09
5.5.310.0030.07718.05
5.5.300.0230.04718.23
5.5.290.0030.05317.93
5.5.280.0070.07318.07
5.5.270.0000.05718.25
5.5.260.0030.05018.21
5.5.250.0070.05317.64
5.5.240.0030.07717.31
5.5.230.0000.08317.47
5.5.220.0030.04317.64
5.5.210.0000.08017.21
5.5.200.0130.06717.40
5.5.190.0030.07717.39
5.5.180.0070.08017.57
5.5.160.0030.08017.57
5.5.150.0070.06717.28
5.5.140.0070.07717.43
5.5.130.0000.04317.17
5.5.120.0070.07017.18
5.5.110.0000.04717.47
5.5.100.0030.07717.33
5.5.90.0000.04317.32
5.5.80.0000.07317.08
5.5.70.0070.06317.31
5.5.60.0000.04317.37
5.5.50.0030.04017.37
5.5.40.0030.04317.38
5.5.30.0070.03717.46
5.5.20.0030.07317.46
5.5.10.0000.04717.34
5.5.00.0100.04717.28
5.4.450.0070.07319.46
5.4.440.0100.03319.57
5.4.430.0030.08019.45
5.4.420.0070.07719.25
5.4.410.0000.07319.13
5.4.400.0000.07718.95
5.4.390.0030.05719.29
5.4.380.0000.08018.93
5.4.370.0030.03718.95
5.4.360.0030.06719.27
5.4.350.0030.06319.12
5.4.340.0030.07019.11
5.4.320.0000.08018.93
5.4.310.0030.04318.95
5.4.300.0030.04019.18
5.4.290.0130.07019.16
5.4.280.0000.06319.16
5.4.270.0100.06719.12
5.4.260.0030.05719.04
5.4.250.0030.07719.11
5.4.240.0030.06718.93
5.4.230.0030.07318.93
5.4.220.0000.05019.10
5.4.210.0070.07319.18
5.4.200.0100.06719.02
5.4.190.0130.04719.02
5.4.180.0000.08018.94
5.4.170.0030.07318.90
5.4.160.0170.06718.92
5.4.150.0000.04019.14
5.4.140.0030.07716.27
5.4.130.0000.05316.22
5.4.120.0070.05716.33
5.4.110.0030.07016.41
5.4.100.0070.07316.49
5.4.90.0070.07016.41
5.4.80.0100.07016.57
5.4.70.0000.06316.43
5.4.60.0000.06316.50
5.4.50.0070.06716.47
5.4.40.0130.02716.38
5.4.30.0100.07316.60
5.4.20.0070.07316.27
5.4.10.0070.07016.35
5.4.00.0030.07015.98
5.3.290.0000.08014.76
5.3.280.0000.06314.70
5.3.270.0030.06014.62
5.3.260.0030.05314.77
5.3.250.0070.05014.65
5.3.240.0070.06014.74
5.3.230.0070.03714.47
5.3.220.0070.07014.66
5.3.210.0030.07314.72
5.3.200.0030.06314.71
5.3.190.0070.05314.58
5.3.180.0100.06014.72
5.3.170.0030.04714.66
5.3.160.0070.07014.55
5.3.150.0030.07714.59
5.3.140.0030.07314.56
5.3.130.0030.08014.55
5.3.120.0100.06014.52
5.3.110.0030.04314.56
5.3.100.0130.05714.28
5.3.90.0100.07014.16
5.3.80.0070.03314.09
5.3.70.0000.06014.09
5.3.60.0000.05013.99
5.3.50.0100.06714.03
5.3.40.0100.06013.95
5.3.30.0030.04013.90
5.3.20.0030.07013.84
5.3.10.0000.05013.80
5.3.00.0070.06713.89
5.2.170.0000.07311.16
5.2.160.0070.06011.15
5.2.150.0030.04311.16
5.2.140.0000.03311.24
5.2.130.0030.02711.19
5.2.120.0030.03011.20
5.2.110.0070.05011.25
5.2.100.0100.05011.09
5.2.90.0030.05311.22
5.2.80.0100.04711.25
5.2.70.0030.05311.07
5.2.60.0070.05311.07
5.2.50.0030.06311.12
5.2.40.0000.04011.00
5.2.30.0000.03011.12
5.2.20.0000.03711.00
5.2.10.0000.03310.91
5.2.00.0000.06310.70
5.1.60.0000.02710.18
5.1.50.0030.02010.15
5.1.40.0030.02310.16
5.1.30.0030.02710.22
5.1.20.0030.02310.43
5.1.10.0030.04310.15
5.1.00.0000.02710.16
5.0.50.0000.04310.15
5.0.40.0000.02310.15
5.0.30.0100.04010.15
5.0.20.0030.04010.15
5.0.10.0070.03710.15
5.0.00.0000.05010.15
4.4.90.0030.01310.15
4.4.80.0030.03010.15
4.4.70.0000.01710.15
4.4.60.0030.02310.15
4.4.50.0000.01310.15
4.4.40.0000.03010.15
4.4.30.0000.01310.15
4.4.20.0030.01310.15
4.4.10.0000.03310.15
4.4.00.0030.04310.15
4.3.110.0000.03710.15
4.3.100.0030.02010.15
4.3.90.0000.02010.15
4.3.80.0000.04310.15
4.3.70.0000.02710.15
4.3.60.0030.02710.15
4.3.50.0030.03010.15
4.3.40.0030.04010.15
4.3.30.0070.03010.15
4.3.20.0000.03710.15
4.3.10.0000.04010.15
4.3.00.0030.02710.15

preferences:
33.91 ms | 400 KiB | 5 Q