3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public $test; public $test2; public function serialize() { return serialize($this); } } $o = new Test(); $o->test = "aaaa"; $o->test2 = "bbbbb"; echo $o->serialize();

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.00416.88
8.3.50.0070.01121.09
8.3.40.0070.01018.67
8.3.30.0080.00818.75
8.3.20.0070.00020.39
8.3.10.0000.00721.90
8.3.00.0040.00423.66
8.2.180.0150.00616.63
8.2.170.0080.00822.96
8.2.160.0030.01320.52
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0080.00019.36
8.2.110.0040.00421.18
8.2.100.0040.00717.93
8.2.90.0040.00419.21
8.2.80.0040.00417.97
8.2.70.0000.00917.63
8.2.60.0040.00418.04
8.2.50.0000.00818.09
8.2.40.0090.00320.64
8.2.30.0030.00319.54
8.2.20.0070.00017.68
8.2.10.0000.00717.97
8.2.00.0040.00417.89
8.1.280.0100.00725.92
8.1.270.0120.00622.18
8.1.260.0100.01026.35
8.1.250.0080.00028.09
8.1.240.0030.00622.48
8.1.230.0070.00417.77
8.1.220.0000.00817.78
8.1.210.0060.00318.77
8.1.200.0060.00317.23
8.1.190.0000.00817.13
8.1.180.0050.00318.10
8.1.170.0000.00818.35
8.1.160.0050.00220.63
8.1.150.0000.00718.75
8.1.140.0000.00819.41
8.1.130.0070.00017.67
8.1.120.0040.00417.33
8.1.110.0040.00417.28
8.1.100.0030.00517.34
8.1.90.0050.00217.29
8.1.80.0040.00417.33
8.1.70.0030.00317.24
8.1.60.0070.00017.57
8.1.50.0050.00317.54
8.1.40.0060.00317.43
8.1.30.0080.00017.47
8.1.20.0040.00417.59
8.1.10.0080.00017.50
8.1.00.0000.00817.52
8.0.300.0030.00518.77
8.0.290.0050.00316.75
8.0.280.0000.00818.44
8.0.270.0030.00317.32
8.0.260.0030.00617.20
8.0.250.0000.00816.82
8.0.240.0070.00016.97
8.0.230.0070.00016.91
8.0.220.0030.00516.80
8.0.210.0040.00416.72
8.0.200.0000.00616.88
8.0.190.0020.00516.89
8.0.180.0060.00316.84
8.0.170.0050.00316.83
8.0.160.0030.00516.86
8.0.150.0050.00316.80
8.0.140.0070.00016.71
8.0.130.0050.00013.28
8.0.120.0060.00316.67
8.0.110.0040.00416.66
8.0.100.0030.00316.76
8.0.90.0000.00716.67
8.0.80.0090.01216.85
8.0.70.0040.00416.79
8.0.60.0060.00316.71
8.0.50.0080.00016.82
8.0.30.0170.00316.81
8.0.20.0150.00817.40
8.0.10.0000.00816.84
8.0.00.0140.00416.62
7.4.330.0020.00216.74
7.4.320.0000.00716.29
7.4.300.0030.00316.56
7.4.290.0030.00316.63
7.4.280.0040.00416.43
7.4.270.0030.00316.60
7.4.260.0070.00016.40
7.4.250.0000.00816.46
7.4.240.0080.00016.58
7.4.230.0030.00316.69
7.4.220.0120.00616.46
7.4.210.0110.00716.52
7.4.200.0070.00016.60
7.4.160.0160.00016.36
7.4.150.0090.00917.40
7.4.140.0140.00717.86
7.4.130.0110.00616.53
7.4.120.0100.00716.54
7.4.110.0060.01016.59
7.4.100.0100.00716.31
7.4.90.0110.00616.61
7.4.80.0090.00919.39
7.4.70.0000.01516.48
7.4.60.0090.00916.64
7.4.50.0090.00516.35
7.4.40.0090.00616.53
7.4.30.0070.01316.46
7.4.00.0050.01215.04
7.3.330.0000.00513.13
7.3.320.0000.00513.16
7.3.310.0040.00416.35
7.3.300.0000.00616.18
7.3.290.0070.00816.23
7.3.280.0080.00716.30
7.3.270.0030.01817.40
7.3.260.0090.01316.55
7.3.250.0110.00616.34
7.3.240.0050.01216.45
7.3.230.0030.01316.54
7.3.210.0100.00716.21
7.3.200.0150.00719.39
7.3.190.0120.00916.27
7.3.180.0110.00416.61
7.3.170.0080.01316.34
7.3.160.0060.01016.21
7.3.120.0090.00614.91
7.3.110.0040.00914.93
7.3.100.0040.01114.85
7.3.90.0000.01814.77
7.3.80.0030.01014.96
7.3.70.0080.00814.75
7.3.60.0100.00314.54
7.3.50.0030.01214.52
7.3.40.0030.01014.73
7.3.30.0030.00914.89
7.3.20.0120.00316.44
7.3.10.0100.00316.39
7.3.00.0040.01216.57
7.2.330.0120.01216.43
7.2.320.0070.01016.72
7.2.310.0030.01716.68
7.2.300.0070.01416.74
7.2.290.0110.00716.70
7.2.250.0090.00914.98
7.2.240.0060.01215.02
7.2.230.0090.00914.80
7.2.220.0060.00915.14
7.2.210.0070.00714.95
7.2.200.0030.01315.09
7.2.190.0040.01115.07
7.2.180.0090.00314.71
7.2.170.0060.00614.92
7.2.00.0060.00919.25
7.1.330.0070.00715.77
7.1.320.0060.01015.88
7.1.310.0110.00315.55
7.1.300.0070.00715.79
7.1.290.0070.00715.85
7.1.280.0030.01015.38
7.1.270.0060.01015.81
7.1.260.0070.00715.79
7.1.200.0000.01215.60
7.1.100.0070.00718.03
7.1.70.0000.00817.25
7.1.60.0070.01719.40
7.1.50.0110.01116.82
7.1.00.0030.07022.54
7.0.200.1120.00714.80
7.0.60.0300.07320.02
7.0.50.0100.06017.89
7.0.40.0100.07720.04
7.0.30.0270.07720.07
7.0.20.0300.07320.16
7.0.10.0070.05720.10
7.0.00.0030.07320.29
5.6.280.0000.05720.99
5.6.210.0070.07020.69
5.6.200.0130.05718.22
5.6.190.0070.08020.61
5.6.180.0330.07320.50
5.6.170.0200.03720.71
5.6.160.0100.03720.54
5.6.150.0130.06018.23
5.6.140.0070.08018.16
5.6.130.0070.06018.19
5.6.120.0100.03721.12
5.6.110.0130.07720.96
5.6.100.0070.04721.14
5.6.90.0100.08321.10
5.6.80.0100.03320.48
5.5.350.0200.07020.45
5.5.340.0430.04018.08
5.5.330.0170.08020.37
5.5.320.0430.04720.24
5.5.310.0270.07720.29
5.5.300.0000.05018.07
5.5.290.0130.04017.95
5.5.280.0130.06320.88
5.5.270.0030.07320.77
5.5.260.0400.05020.87
5.5.250.0030.07720.46
5.5.240.0200.03020.16

preferences:
41.28 ms | 401 KiB | 5 Q