3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ERROR | E_WARNING | E_PARSE); class Definition implements Serializable { private $value; public function __construct($value) { $this->value = $value; } public function serialize() { echo serialize([$this->value])."\n"; return serialize($this->value); } public function unserialize($data) { $this->value = unserialize($data); } } $a=new stdClass(); $d=new Definition($a); var_dump(unserialize(serialize([$d,'This text will appear twice!',$a])));

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.70.0140.00018.43
8.3.60.0120.00618.68
8.3.50.0080.01222.15
8.3.40.0150.00018.68
8.3.30.0070.01418.86
8.3.20.0080.00020.73
8.3.10.0050.00221.90
8.3.00.0120.00019.50
8.2.180.0100.00716.63
8.2.170.0100.00722.96
8.2.160.0140.00019.26
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00419.46
8.2.120.0090.00026.16
8.2.110.0040.00822.08
8.2.100.0040.00817.97
8.2.90.0000.00818.34
8.2.80.0040.00418.16
8.2.70.0040.00417.93
8.2.60.0000.00718.22
8.2.50.0040.00418.34
8.2.40.0000.00720.49
8.2.30.0000.00919.36
8.2.20.0040.00418.05
8.2.10.0040.00418.07
8.2.00.0070.00017.57
8.1.280.0150.00325.92
8.1.270.0070.00022.19
8.1.260.0030.00626.35
8.1.250.0040.00428.09
8.1.240.0060.00322.18
8.1.230.0080.00419.07
8.1.220.0030.00517.74
8.1.210.0060.00318.77
8.1.200.0000.00917.25
8.1.190.0040.00417.23
8.1.180.0050.00518.10
8.1.170.0080.00018.56
8.1.160.0070.00018.88
8.1.150.0030.00520.26
8.1.140.0000.00719.52
8.1.130.0030.00319.00
8.1.120.0040.00317.46
8.1.110.0040.00417.51
8.1.100.0050.00217.34
8.1.90.0040.00417.36
8.1.80.0030.00517.47
8.1.70.0030.00517.52
8.1.60.0030.00617.63
8.1.50.0000.00817.52
8.1.40.0000.00817.51
8.1.30.0050.00317.51
8.1.20.0080.00017.60
8.1.10.0040.00417.55
8.1.00.0000.00917.59
8.0.300.0040.00419.68
8.0.290.0000.00816.75
8.0.280.0030.00318.32
8.0.270.0030.00517.30
8.0.260.0030.00317.31
8.0.250.0030.00316.91
8.0.240.0030.00316.92
8.0.230.0040.00817.02
8.0.220.0030.00316.97
8.0.210.0000.00716.82
8.0.200.0000.00817.03
8.0.190.0040.00416.92
8.0.180.0070.00016.90
8.0.170.0040.00416.88
8.0.160.0040.00416.86
8.0.150.0000.00716.87
8.0.140.0000.00716.82
8.0.130.0030.00313.43
8.0.120.0050.00316.89
8.0.110.0000.00816.86
8.0.100.0000.00717.05
8.0.90.0040.00416.89
8.0.80.0100.00616.94
8.0.70.0030.00516.95
8.0.60.0000.00716.98
8.0.50.0030.00416.98
8.0.30.0100.00717.09
8.0.20.0120.00917.40
8.0.10.0040.00416.88
8.0.00.0080.01516.91
7.4.330.0060.00015.55
7.4.320.0060.00016.41
7.4.300.0060.00016.42
7.4.290.0030.00316.56
7.4.280.0040.00416.60
7.4.270.0000.00716.61
7.4.260.0030.00316.60
7.4.250.0030.00516.38
7.4.240.0070.00016.52
7.4.230.0070.00016.40
7.4.220.0090.01216.54
7.4.210.0080.00816.46
7.4.200.0000.00816.65
7.4.160.0090.00716.56
7.4.150.0120.00917.40
7.4.140.0110.00817.86
7.4.130.0080.00916.61
7.4.120.0140.00616.52
7.4.110.0090.01116.52
7.4.100.0130.00516.57
7.4.90.0090.00916.57
7.4.80.0110.01119.39
7.4.70.0070.01116.61
7.4.60.0100.00716.34
7.4.50.0030.01016.20
7.4.40.0080.01216.66
7.4.30.0120.00416.49
7.4.00.0110.00514.95
7.3.330.0000.00513.33
7.3.320.0060.00013.32
7.3.310.0000.00716.40
7.3.300.0070.00016.33
7.3.290.0000.00816.35
7.3.280.0090.00816.33
7.3.270.0070.01617.40
7.3.260.0120.00516.59
7.3.250.0070.01016.47
7.3.240.0090.01116.48
7.3.230.0130.00316.49
7.3.210.0110.00616.38
7.3.200.0100.00716.50
7.3.190.0190.00316.53
7.3.180.0080.00816.44
7.3.170.0120.00616.49
7.3.160.0120.00616.46
7.3.120.0070.00714.96
7.3.110.0060.00914.82
7.3.100.0110.00715.05
7.3.90.0070.00714.88
7.3.80.0100.00314.88
7.3.70.0030.01414.99
7.3.60.0030.01014.62
7.3.50.0110.00014.95
7.3.40.0000.01314.74
7.3.30.0060.00914.84
7.3.20.0030.01016.45
7.3.10.0030.00616.60
7.3.00.0110.00416.79
7.2.330.0090.00916.66
7.2.320.0130.00316.43
7.2.310.0090.00916.69
7.2.300.0100.01016.51
7.2.290.0160.00916.88
7.2.250.0060.01314.91
7.2.240.0030.01615.33
7.2.230.0090.00614.68
7.2.220.0100.00315.29
7.2.210.0050.00515.35
7.2.200.0000.00915.03
7.2.190.0030.01215.21
7.2.180.0060.00614.89
7.2.170.0000.01415.25
7.2.160.0040.00715.21
7.2.150.0030.00917.07
7.2.140.0000.01017.16
7.2.130.0070.00716.71
7.2.120.0120.00016.91
7.2.110.0110.00317.13
7.2.100.0100.00716.77
7.2.90.0080.00616.98
7.2.80.0030.01316.99
7.2.70.0110.00417.18
7.2.60.0070.00716.75
7.2.50.0100.00316.96
7.2.40.0100.00717.05
7.2.30.0040.01116.76
7.2.20.0040.00717.14
7.2.10.0110.00016.73
7.2.00.0070.01316.93
7.1.330.0120.00315.84
7.1.320.0060.00615.84
7.1.310.0100.00715.63
7.1.300.0060.00915.62
7.1.290.0070.01015.75
7.1.280.0000.01315.67
7.1.270.0070.00315.56
7.1.260.0030.00715.70
7.1.250.0110.00416.02
7.1.240.0060.00315.72
7.1.230.0100.00315.82
7.1.220.0090.00615.52
7.1.210.0100.00315.54
7.1.200.0040.00715.90
7.1.190.0040.00715.65
7.1.180.0000.01215.65
7.1.170.0000.01215.86
7.1.160.0070.00315.96
7.1.150.0030.00915.74
7.1.140.0130.00315.60
7.1.130.0030.00915.57
7.1.120.0070.01315.72
7.1.110.0080.01115.74
7.1.100.0030.00915.80
7.1.90.0090.00615.87
7.1.80.0070.00715.65
7.1.70.0070.00416.35
7.1.60.0090.00716.60
7.1.50.0040.01215.77
7.1.40.0100.00615.93
7.1.30.0060.00915.84
7.1.20.0120.00315.76
7.1.10.0000.01315.96
7.1.00.0100.03019.14
7.0.330.0030.00715.22
7.0.320.0110.00015.34
7.0.310.0050.00815.09
7.0.300.0000.01315.16
7.0.290.0080.00615.61
7.0.280.0080.00015.50
7.0.270.0040.00815.48
7.0.260.0100.00715.04
7.0.250.0000.01515.24
7.0.240.0060.00315.52
7.0.230.0080.00415.47
7.0.220.0110.00315.43
7.0.210.0000.01615.57
7.0.200.0020.01016.05
7.0.190.0000.01615.57
7.0.180.0040.01115.25
7.0.170.0040.01115.57
7.0.160.0040.00815.10
7.0.150.0090.00015.45
7.0.140.0050.03618.77
7.0.130.0140.02618.73
7.0.120.0080.02818.77
7.0.110.0060.03018.73
7.0.100.0120.02818.61
7.0.90.0070.03418.67
7.0.80.0050.04018.76
7.0.70.0050.03218.76
7.0.60.0080.03118.80
7.0.50.0060.04318.67
7.0.40.0090.03217.83
7.0.30.0080.02817.79
7.0.20.0070.02917.78
7.0.10.0070.03317.83
7.0.00.0070.03217.82
5.6.400.0070.00314.48
5.6.390.0100.00014.44
5.6.380.0080.00414.43
5.6.370.0070.00714.56
5.6.360.0030.01014.75
5.6.350.0030.01314.36
5.6.340.0080.00814.61
5.6.330.0100.00714.47
5.6.320.0040.00714.36
5.6.310.0060.00614.58
5.6.300.0110.00314.47
5.6.290.0100.02717.61
5.6.280.0110.02617.75
5.6.270.0050.03217.72
5.6.260.0100.02817.59
5.6.250.0080.03017.64
5.6.240.0050.04917.61
5.6.230.0120.02917.70
5.6.220.0080.03017.71
5.6.210.0080.03017.58
5.6.200.0020.04617.75
5.6.190.0120.04017.76
5.6.180.0050.03417.58
5.6.170.0070.03117.67
5.6.160.0070.03117.77
5.6.150.0050.03417.53
5.6.140.0100.03517.55
5.6.130.0090.03317.60
5.6.120.0020.04117.78
5.6.110.0110.03017.59
5.6.100.0090.03017.84
5.6.90.0030.03317.75
5.6.80.0090.02517.17
5.6.70.0020.03517.54
5.6.60.0090.02817.21
5.6.50.0110.02717.29
5.6.40.0100.03317.20
5.6.30.0060.03117.27
5.6.20.0080.02817.46
5.6.10.0070.02817.37
5.6.00.0070.03017.28

preferences:
64.47 ms | 401 KiB | 5 Q