3v4l.org

run code in 300+ PHP versions simultaneously
<?php $c1 = new class() implements Serializable { public function serialize() { return 'foo'; } public function unserialize($data) { return new self(); } }; var_dump(serialize($c1));

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.31
8.3.50.0140.00522.05
8.3.40.0090.00918.76
8.3.30.0170.00318.89
8.3.20.0000.00720.34
8.3.10.0050.00320.54
8.3.00.0070.00021.72
8.2.180.0100.01018.29
8.2.170.0120.00322.96
8.2.160.0130.00322.16
8.2.150.0030.00624.18
8.2.140.0040.00424.66
8.2.130.0080.00021.04
8.2.120.0090.00026.35
8.2.110.0070.00422.25
8.2.100.0040.00817.91
8.2.90.0050.00317.75
8.2.80.0000.00918.05
8.2.70.0050.00317.93
8.2.60.0030.00517.93
8.2.50.0050.00318.10
8.2.40.0040.00420.64
8.2.30.0000.00719.43
8.2.20.0080.00017.80
8.2.10.0070.00017.93
8.2.00.0040.00418.05
8.1.280.0090.00625.92
8.1.270.0120.00622.09
8.1.260.0080.00028.09
8.1.250.0080.00028.09
8.1.240.0030.00624.02
8.1.230.0040.00720.45
8.1.220.0040.00417.78
8.1.210.0000.00818.77
8.1.200.0000.00917.35
8.1.190.0090.00017.22
8.1.180.0050.00318.10
8.1.170.0000.00818.64
8.1.160.0040.00422.13
8.1.150.0000.00718.75
8.1.140.0040.00419.55
8.1.130.0000.00717.64
8.1.120.0030.00317.41
8.1.110.0050.00317.52
8.1.100.0030.00517.48
8.1.90.0040.00417.42
8.1.80.0070.00017.41
8.1.70.0000.00717.43
8.1.60.0080.00017.47
8.1.50.0040.00417.43
8.1.40.0050.00317.53
8.1.30.0080.00017.56
8.1.20.0040.00417.54
8.1.10.0040.00417.48
8.1.00.0050.00317.36
8.0.300.0000.00919.64
8.0.290.0050.00316.88
8.0.280.0050.00318.44
8.0.270.0000.00717.26
8.0.260.0060.00317.23
8.0.250.0030.00317.06
8.0.240.0000.00817.03
8.0.230.0050.00216.90
8.0.220.0030.00316.99
8.0.210.0030.00316.84
8.0.200.0080.00016.88
8.0.190.0080.00017.05
8.0.180.0000.00717.00
8.0.170.0000.00716.97
8.0.160.0060.00316.91
8.0.150.0000.00716.90
8.0.140.0070.00016.93
8.0.130.0030.00313.41
8.0.120.0040.00416.87
8.0.110.0000.00716.84
8.0.100.0050.00316.88
8.0.90.0040.00416.89
8.0.80.0070.01416.83
8.0.70.0040.00416.90
8.0.60.0000.00716.85
8.0.50.0000.00716.74
8.0.30.0110.00917.18
8.0.20.0120.00717.40
8.0.10.0000.00716.94
8.0.00.0100.00816.84
7.4.330.0050.00016.79
7.4.320.0000.00616.52
7.4.300.0030.00316.50
7.4.290.0030.00316.49
7.4.280.0060.00316.59
7.4.270.0030.00316.48
7.4.260.0060.00316.54
7.4.250.0040.00416.47
7.4.240.0030.00316.51
7.4.230.0060.00016.44
7.4.220.0130.00616.55
7.4.210.0080.00516.49
7.4.200.0070.00016.69
7.4.160.0080.00816.45
7.4.150.0090.00917.40
7.4.140.0120.00817.86
7.4.130.0080.01416.40
7.4.120.0070.01116.58
7.4.110.0130.00316.43
7.4.100.0130.01016.55
7.4.90.0120.00616.37
7.4.80.0090.01219.39
7.4.70.0130.00316.52
7.4.60.0110.00616.46
7.4.50.0040.00916.45
7.4.40.0100.00716.38
7.4.30.0100.00616.33
7.4.00.0110.00614.80
7.3.330.0060.00013.16
7.3.320.0000.00513.12
7.3.310.0070.00016.20
7.3.300.0070.00016.25
7.3.290.0090.00816.29
7.3.280.0100.00716.28
7.3.270.0060.01217.40
7.3.260.0080.01216.26
7.3.250.0090.00916.43
7.3.240.0070.01216.22
7.3.230.0120.00916.54
7.3.210.0120.00616.43
7.3.200.0070.01016.57
7.3.190.0040.01216.20
7.3.180.0140.00616.51
7.3.170.0060.01616.37
7.3.160.0060.01016.44
7.3.120.0140.00314.65
7.3.110.0070.01114.65
7.3.100.0000.01614.68
7.3.90.0030.01014.80
7.3.80.0080.00814.69
7.3.70.0080.00414.66
7.3.60.0100.00014.73
7.3.50.0110.00414.84
7.3.40.0030.00714.85
7.3.30.0040.01114.80
7.3.20.0100.00716.44
7.3.10.0060.00916.60
7.3.00.0000.01316.41
7.2.330.0000.01916.84
7.2.320.0140.00916.57
7.2.310.0170.00016.52
7.2.300.0170.00816.31
7.2.290.0140.00316.78
7.2.250.0060.01415.26
7.2.240.0090.00915.12
7.2.230.0040.01114.75
7.2.220.0030.00715.02
7.2.210.0030.01014.86
7.2.200.0150.00014.89
7.2.190.0100.00014.71
7.2.180.0000.01315.05
7.2.170.0060.00314.94
7.2.60.0060.00916.79
7.2.00.0030.01219.45
7.1.330.0070.00715.66
7.1.320.0090.00615.50
7.1.310.0030.01015.65
7.1.300.0040.00815.70
7.1.290.0080.00615.78
7.1.280.0030.00715.83
7.1.270.0060.00915.67
7.1.260.0040.00915.57
7.1.200.0070.00315.71
7.1.100.0120.00418.20
7.1.70.0120.00317.23
7.1.60.0140.01119.24
7.1.50.0000.01116.80
7.1.00.0030.07722.37
7.0.200.0470.00914.58
7.0.60.0300.05719.96
7.0.50.0070.04017.87
7.0.40.0130.08020.09
7.0.30.0270.04720.19
7.0.20.0300.09020.30
7.0.10.0030.06020.07
7.0.00.0100.08720.25
5.6.280.0030.06021.14
5.6.210.0030.08320.66
5.6.200.0170.08018.23
5.6.190.0130.05020.50
5.6.180.0300.07720.77
5.6.170.0200.04020.48
5.6.160.0070.04320.57
5.6.150.0100.08018.14
5.6.140.0100.03318.21
5.6.130.0030.08718.21
5.6.120.0100.05321.13
5.6.110.0300.04721.00
5.6.100.0130.08320.88
5.6.90.0070.04721.10
5.6.80.0070.04720.53
5.5.350.0370.06320.45
5.5.340.0030.06317.99
5.5.330.0000.08020.38
5.5.320.0630.07320.28
5.5.310.0170.03720.23
5.5.300.0030.04717.97
5.5.290.0070.08017.92
5.5.280.0000.04720.84
5.5.270.0030.05320.64
5.5.260.0130.08020.75
5.5.250.0000.07320.70
5.5.240.0030.06720.25

preferences:
55.29 ms | 401 KiB | 5 Q