3v4l.org

run code in 300+ PHP versions simultaneously
<?php class c1 { public $a = 1; public $b = 2; } class c2 implements Serializable { public function serialize() { return '{s:1:"a";i:1;s:1:"b";i:2;}'; } public function unserialize($str) {} } $o1 = new c1; $o2 = new c2; echo serialize($o1) . "\n"; echo serialize($o2) . "\n";

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.0110.00718.40
8.3.50.0090.01021.92
8.3.40.0150.00618.85
8.3.30.0080.00618.76
8.3.20.0040.00418.82
8.3.10.0130.00621.09
8.3.00.0070.00021.80
8.2.180.0040.01116.63
8.2.170.0090.00622.96
8.2.160.0130.00020.52
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0000.00826.16
8.2.120.0030.00521.13
8.2.110.0030.00720.76
8.2.100.0060.00617.78
8.2.90.0040.00819.27
8.2.80.0080.00017.97
8.2.70.0060.00317.50
8.2.60.0000.00817.93
8.2.50.0050.00318.10
8.2.40.0050.00320.42
8.2.30.0000.00821.22
8.2.20.0020.00517.58
8.2.10.0040.00417.64
8.2.00.0030.00517.70
8.1.280.0070.00725.92
8.1.270.0000.00723.99
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0060.00322.50
8.1.230.0080.00417.42
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0040.00417.35
8.1.190.0080.00017.52
8.1.180.0000.00718.10
8.1.170.0050.00318.29
8.1.160.0040.00422.28
8.1.150.0000.00818.52
8.1.140.0070.00017.46
8.1.130.0030.00317.75
8.1.120.0000.00817.54
8.1.110.0050.00217.39
8.1.100.0040.00417.51
8.1.90.0050.00217.48
8.1.80.0000.00817.42
8.1.70.0000.00717.41
8.1.60.0050.00317.46
8.1.50.0000.00717.50
8.1.40.0000.00817.51
8.1.30.0000.00717.65
8.1.20.0050.00317.58
8.1.10.0050.00317.55
8.1.00.0040.00417.54
8.0.300.0040.00418.77
8.0.290.0070.00016.75
8.0.280.0000.00718.43
8.0.270.0000.00717.27
8.0.260.0030.00316.84
8.0.250.0030.00517.02
8.0.240.0000.00916.91
8.0.230.0000.00716.86
8.0.220.0040.00416.91
8.0.210.0000.00716.94
8.0.200.0040.00416.88
8.0.190.0000.00716.86
8.0.180.0000.00716.92
8.0.170.0060.00316.94
8.0.160.0000.00716.86
8.0.150.0000.00716.94
8.0.140.0040.00416.89
8.0.130.0000.00513.34
8.0.120.0050.00316.85
8.0.110.0000.00817.02
8.0.100.0040.00417.02
8.0.90.0070.00016.89
8.0.80.0080.00816.96
8.0.70.0040.00416.95
8.0.60.0000.00716.79
8.0.50.0000.00716.80
8.0.30.0140.00517.12
8.0.20.0130.00517.40
8.0.10.0040.00417.07
8.0.00.0110.00716.73
7.4.330.0030.00314.84
7.4.320.0060.00016.64
7.4.300.0030.00316.50
7.4.290.0030.00316.59
7.4.280.0030.00316.40
7.4.270.0000.00616.66
7.4.260.0060.00013.28
7.4.250.0000.00816.54
7.4.240.0060.00316.54
7.4.230.0030.00316.38
7.4.220.0120.00916.37
7.4.210.0080.00816.58
7.4.200.0070.00016.64
7.4.190.0080.00016.71
7.4.160.0040.01116.56
7.4.150.0090.01517.40
7.4.140.0110.00517.86
7.4.130.0070.01216.52
7.4.120.0050.01316.50
7.4.110.0030.01416.63
7.4.100.0090.00916.62
7.4.90.0090.00916.41
7.4.80.0180.00519.39
7.4.70.0060.01516.52
7.4.60.0100.00716.50
7.4.50.0030.00516.62
7.4.40.0070.01122.77
7.4.30.0100.01316.66
7.4.00.0000.01614.96
7.3.330.0050.00013.27
7.3.320.0030.00313.17
7.3.310.0070.00016.35
7.3.300.0030.00316.27
7.3.290.0090.00616.30
7.3.280.0040.01416.27
7.3.270.0090.00917.40
7.3.260.0100.01118.24
7.3.250.0130.00416.28
7.3.240.0160.00616.61
7.3.230.0110.00516.49
7.3.210.0090.01416.63
7.3.200.0140.01119.39
7.3.190.0180.00516.26
7.3.180.0060.00916.34
7.3.170.0100.01016.32
7.3.160.0100.00716.28
7.3.120.0060.01014.79
7.2.330.0050.01416.59
7.2.320.0120.00916.32
7.2.310.0030.01716.43
7.2.300.0030.01416.50
7.2.290.0120.00416.71
7.2.120.0080.00816.59
7.2.110.0070.00716.71
7.2.100.0030.01016.41
7.2.90.0040.01116.71
7.2.80.0070.00716.63
7.2.70.0030.00916.91
7.2.60.0000.01316.97
7.2.50.0050.00516.94
7.2.40.0060.00916.88
7.2.30.0070.00716.93
7.2.20.0060.00616.90
7.2.10.0070.00717.08
7.2.00.0050.00718.08
7.1.240.0080.00615.77
7.1.230.0060.00615.55
7.1.220.0080.00415.79
7.1.210.0000.01215.79
7.1.200.0040.00615.81
7.1.190.0030.00915.80
7.1.180.0060.00615.75
7.1.170.0030.01315.49
7.1.160.0080.00015.71
7.1.150.0060.00615.77
7.1.140.0070.00715.73
7.1.130.0000.00815.71
7.1.120.0030.00915.62
7.1.110.0060.00615.76
7.1.100.0020.00816.63
7.1.90.0070.00315.64
7.1.80.0060.00615.76
7.1.70.0050.00716.43
7.1.60.0100.00717.69
7.1.50.0080.01216.29
7.1.40.0030.00615.66
7.1.30.0100.00315.92
7.1.20.0000.01315.70
7.1.10.0070.00715.63
7.1.00.0070.03119.02
7.0.320.0060.00615.32
7.0.310.0040.01215.29
7.0.300.0000.01215.20
7.0.290.0000.01215.23
7.0.280.0040.01215.19
7.0.270.0040.01215.09
7.0.260.0000.01015.16
7.0.250.0090.00315.19
7.0.240.0090.00315.38
7.0.230.0070.00715.34
7.0.220.0070.00415.29
7.0.210.0030.00915.33
7.0.200.0100.00216.00
7.0.190.0030.01015.09
7.0.180.0070.00715.23
7.0.170.0080.00415.36
7.0.160.0000.01215.24
7.0.150.0070.00715.61
7.0.140.0050.04018.62
7.0.130.0040.00815.27
7.0.120.0040.00815.28
7.0.110.0040.01115.38
7.0.100.0000.00815.41
7.0.90.0060.00315.21
7.0.80.0090.00315.48
7.0.70.0080.04018.35
7.0.60.0000.04718.44
7.0.50.0070.03818.82
7.0.40.0030.05216.84
7.0.30.0030.05016.61
7.0.20.0020.03716.79
7.0.10.0070.03016.59
7.0.00.0020.02416.73
5.6.380.0090.00314.72
5.6.370.0100.00314.47
5.6.360.0030.00614.63
5.6.350.0060.00614.39
5.6.340.0120.00314.11
5.6.330.0030.00913.96
5.6.320.0040.00814.37
5.6.310.0030.01014.53
5.6.300.0120.00013.99
5.6.290.0000.01414.26
5.6.280.0050.04017.71
5.6.270.0060.00814.63
5.6.260.0030.01014.30
5.6.250.0030.00914.36
5.6.240.0040.01114.44
5.6.230.0070.00314.12
5.6.220.0040.03417.51
5.6.210.0050.04517.54
5.6.200.0100.03817.75
5.6.190.0090.04017.64
5.6.180.0030.04617.79
5.6.170.0030.04617.53
5.6.160.0040.02417.64
5.6.150.0010.03617.51
5.6.140.0050.04317.71
5.6.130.0050.04317.89
5.6.120.0050.04217.67
5.6.110.0020.04817.71
5.6.100.0070.03717.84
5.6.90.0050.04017.59
5.6.80.0050.03717.44
5.6.70.0050.03917.37
5.6.60.0100.03617.28
5.6.50.0030.02617.47
5.6.40.0070.02517.33
5.6.30.0060.04217.38
5.6.20.0030.04317.45
5.6.10.0090.03917.49
5.6.00.0050.04317.31
5.5.380.0060.00611.41
5.5.370.0000.01111.27
5.5.360.0040.03015.89
5.5.350.0060.04015.82
5.5.340.0040.04216.01
5.5.330.0030.04516.05
5.5.320.0020.05016.07
5.5.310.0030.04316.08
5.5.300.0050.04316.01
5.5.290.0060.03316.07
5.5.280.0040.04816.09
5.5.270.0030.04116.08
5.5.260.0040.04516.01
5.5.250.0030.03915.96
5.5.240.0090.01815.76
5.5.230.0050.04015.72
5.5.220.0100.03515.63
5.5.210.0060.03215.73
5.5.200.0050.04015.69
5.5.190.0040.04415.72
5.5.180.0030.03915.76
5.5.170.0090.00314.34
5.5.160.0040.04315.69
5.5.150.0030.03415.73
5.5.140.0060.04215.74
5.5.130.0070.03715.64
5.5.120.0080.03615.72
5.5.110.0020.04215.75
5.5.100.0070.04215.72
5.5.90.0050.03815.67
5.5.80.0030.04015.69
5.5.70.0070.03915.67
5.5.60.0100.03515.69
5.5.50.0080.03015.61
5.5.40.0030.04415.68
5.5.30.0040.03215.66
5.5.20.0000.03915.59
5.5.10.0050.04315.65
5.5.00.0000.04315.64
5.4.450.0060.04315.38
5.4.440.0070.04315.36
5.4.430.0050.04015.23
5.4.420.0050.03015.35
5.4.410.0030.04415.33
5.4.400.0060.03915.06
5.4.390.0070.04215.18
5.4.380.0080.03815.18
5.4.370.0000.03615.15
5.4.360.0030.03515.23
5.4.350.0050.04015.23
5.4.340.0050.03515.09
5.4.330.0060.00311.29
5.4.320.0070.03915.08
5.4.310.0040.03615.23
5.4.300.0080.03115.24
5.4.290.0050.03815.08
5.4.280.0050.04015.08
5.4.270.0020.04515.19
5.4.260.0030.04215.25
5.4.250.0050.04415.19
5.4.240.0050.03315.08
5.4.230.0060.03515.14
5.4.220.0030.02915.16
5.4.210.0050.04115.21
5.4.200.0030.04515.23
5.4.190.0000.03615.18
5.4.180.0020.03915.19
5.4.170.0070.03715.06
5.4.160.0020.04215.05
5.4.150.0030.04115.18
5.4.140.0070.02013.77
5.4.130.0020.03313.70
5.4.120.0040.03713.81
5.4.110.0050.04113.92
5.4.100.0040.03913.81
5.4.90.0030.04113.80
5.4.80.0020.04013.82
5.4.70.0030.03613.82
5.4.60.0030.03513.86
5.4.50.0050.02613.87
5.4.40.0030.03313.84
5.4.30.0060.03613.78
5.4.20.0030.04113.82
5.4.10.0070.03713.85
5.4.00.0030.04013.53
5.3.290.0060.03513.02
5.3.280.0070.03012.94
5.3.270.0050.03812.94
5.3.260.0030.04212.96
5.3.250.0080.03512.99
5.3.240.0050.03112.96
5.3.230.0020.04313.01
5.3.220.0050.04312.88
5.3.210.0070.03812.90
5.3.200.0020.04012.96
5.3.190.0030.04012.95
5.3.180.0020.04012.95
5.3.170.0050.04212.95
5.3.160.0020.03712.90
5.3.150.0050.03712.92
5.3.140.0030.04012.91
5.3.130.0030.03612.95
5.3.120.0050.03812.90
5.3.110.0050.03812.91
5.3.100.0050.03512.72
5.3.90.0070.03512.71
5.3.80.0050.03512.66
5.3.70.0070.03212.64
5.3.60.0020.04012.65
5.3.50.0000.04012.63
5.3.40.0020.04212.64
5.3.30.0060.03412.56
5.3.20.0050.03512.51
5.3.10.0050.03012.46
5.3.00.0050.03712.42
5.2.170.0040.03411.35
5.2.160.0030.03311.35
5.2.150.0030.03611.35
5.2.140.0000.03811.35
5.2.130.0050.02811.35
5.2.120.0030.03011.35
5.2.110.0020.03511.35
5.2.100.0030.03111.35
5.2.90.0030.02511.35
5.2.80.0050.02811.35
5.2.70.0040.02311.35
5.2.60.0000.02911.35
5.2.50.0020.02811.35
5.2.40.0000.03511.35
5.2.30.0030.03111.35
5.2.20.0030.03511.35
5.2.10.0040.02911.35
5.2.00.0020.03411.35
5.1.60.0030.02411.35
5.1.50.0000.02811.35
5.1.40.0090.02311.35
5.1.30.0040.02911.35
5.1.20.0020.03211.35
5.1.10.0050.02711.35
5.1.00.0020.02711.35
5.0.50.0000.02411.35
5.0.40.0020.01811.35
5.0.30.0030.03011.35
5.0.20.0020.02411.35
5.0.10.0050.01711.35
5.0.00.0000.03711.35
4.4.90.0020.01611.35
4.4.80.0000.02011.35
4.4.70.0030.01811.35
4.4.60.0030.01711.35
4.4.50.0000.01611.35
4.4.40.0000.02911.35
4.4.30.0000.02211.35
4.4.20.0010.01811.35
4.4.10.0020.02011.35
4.4.00.0000.03011.35
4.3.110.0000.02111.35
4.3.100.0020.01811.35
4.3.90.0000.02011.35
4.3.80.0000.03011.35
4.3.70.0020.02011.35
4.3.60.0020.02011.35
4.3.50.0000.02111.35
4.3.40.0020.02711.35
4.3.30.0000.01911.35
4.3.20.0010.01711.35
4.3.10.0040.01311.35
4.3.00.0020.02011.35

preferences:
81.25 ms | 401 KiB | 5 Q