3v4l.org

run code in 300+ PHP versions simultaneously
<?php class HasProp { public int $x; public function __sleep() { return ['x']; } } $x = new HasProp(); // string(28) "O:7:"HasProp":1:{s:1:"x";N;}" var_dump($s = serialize($x)); // Fatal error: Uncaught TypeError: Typed property HasProp::$x must be int, null used in ... unserialize($s);

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.0130.00718.43
8.3.50.0070.00716.50
8.3.40.0140.00318.71
8.3.30.0090.00618.54
8.3.20.0070.00021.73
8.3.10.0000.00821.92
8.3.00.0040.00421.77
8.2.180.0070.00718.54
8.2.170.0120.00322.96
8.2.160.0140.00020.24
8.2.150.0080.00024.18
8.2.140.0070.00024.66
8.2.130.0080.00026.16
8.2.120.0020.00520.63
8.2.110.0000.01019.29
8.2.100.0040.00717.78
8.2.90.0030.00519.08
8.2.80.0030.00517.97
8.2.70.0080.00017.50
8.2.60.0050.00317.91
8.2.50.0000.00918.07
8.2.40.0030.00518.09
8.2.30.0020.00518.06
8.2.20.0030.00517.82
8.2.10.0050.00319.06
8.2.00.0040.00419.06
8.1.280.0140.00725.92
8.1.270.0080.00020.78
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0100.00723.98
8.1.230.0080.00317.42
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0110.00017.35
8.1.190.0030.00517.23
8.1.180.0040.00418.10
8.1.170.0050.00318.51
8.1.160.0040.00419.06
8.1.150.0030.00518.80
8.1.140.0040.00420.70
8.1.130.0000.00719.98
8.1.120.0040.00417.42
8.1.110.0060.00317.40
8.1.100.0040.00417.41
8.1.90.0080.00417.42
8.1.80.0000.00717.28
8.1.70.0040.00417.37
8.1.60.0040.00417.59
8.1.50.0000.00717.41
8.1.40.0040.00417.43
8.1.30.0000.00817.65
8.1.20.0000.00717.64
8.1.10.0040.00417.52
8.1.00.0000.00717.41
8.0.300.0040.00418.77
8.0.290.0000.00716.63
8.0.280.0030.00318.38
8.0.270.0040.00417.95
8.0.260.0030.00319.92
8.0.250.0000.00716.97
8.0.240.0060.00317.02
8.0.230.0100.00016.95
8.0.220.0030.00316.82
8.0.210.0070.00016.86
8.0.200.0030.00317.01
8.0.190.0050.00216.96
8.0.180.0080.00016.90
8.0.170.0040.00416.88
8.0.160.0040.00416.95
8.0.150.0040.00416.78
8.0.140.0040.00416.83
8.0.130.0000.00513.36
8.0.120.0040.00416.82
8.0.110.0050.00316.89
8.0.100.0040.00416.78
8.0.90.0030.00616.78
8.0.80.0080.00916.88
8.0.70.0040.00416.69
8.0.60.0000.00716.82
8.0.50.0050.00216.91
8.0.30.0090.00917.09
8.0.20.0100.00916.98
8.0.10.0000.00816.89
8.0.00.0110.00716.67
7.4.330.0030.00316.67
7.4.320.0000.00616.39
7.4.300.0030.00316.64
7.4.290.0000.00816.64
7.4.280.0040.00416.64
7.4.270.0060.00016.50
7.4.260.0070.00016.45
7.4.250.0030.00316.59
7.4.240.0000.00716.51
7.4.230.0000.00716.50
7.4.220.0030.00316.35
7.4.210.0100.00816.50
7.4.200.0040.00416.50
7.4.130.0060.01216.32
7.4.120.0140.00816.61
7.4.110.0100.01016.40
7.4.100.0140.00716.30
7.4.90.0100.00916.47
7.4.80.0090.00817.89
7.4.70.0080.00916.42
7.4.60.0090.01016.43
7.4.50.0110.00616.42
7.4.40.0080.00916.47
7.4.30.0070.01116.63
7.4.20.0070.01116.14
7.4.10.0120.00616.06
7.4.00.0060.01316.19
7.3.330.0040.00415.99
7.3.320.0060.00013.23
7.3.310.0000.00716.00
7.3.300.0050.00216.19
7.3.290.0080.00916.17
7.3.280.0090.00616.26
7.3.260.0070.01016.30
7.3.240.0060.01116.12
7.3.230.0070.01516.19
7.3.210.0080.01216.19
7.3.200.0100.01016.31
7.3.190.0090.00916.11
7.3.180.0120.00516.17
7.3.170.0100.00716.24
7.3.160.0110.00516.15
7.3.150.0100.00716.03
7.3.140.0100.00716.14
7.3.130.0100.00815.81
7.3.120.0120.00715.76
7.3.110.0110.00615.78
7.3.100.0070.01115.72
7.3.90.0120.00615.70
7.3.80.0090.01015.78
7.3.70.0070.01215.80
7.3.60.0100.00615.72
7.3.50.0120.00615.76
7.3.40.0090.00915.75
7.3.30.0080.00815.73
7.3.20.0100.00716.19
7.3.10.0110.00616.34
7.3.00.0110.00616.18
7.2.330.0110.00816.35
7.2.320.0050.01616.58
7.2.310.0100.00716.44
7.2.300.0180.00316.25
7.2.290.0090.01016.27
7.2.280.0100.00716.46
7.2.270.0100.00916.13
7.2.260.0110.00916.02
7.2.250.0100.00815.81
7.2.240.0150.00515.76
7.2.230.0110.00715.93
7.2.220.0100.00715.93
7.2.210.0090.01215.95
7.2.200.0080.00815.86
7.2.190.0080.00915.87
7.2.180.0110.00716.01
7.2.170.0100.00915.78
7.2.160.0070.01015.90
7.2.150.0080.01116.34
7.2.140.0130.00516.41
7.2.130.0100.00716.48
7.2.120.0090.00716.39
7.2.110.0080.00916.37
7.2.100.0160.00716.45
7.2.90.0130.00816.44
7.2.80.0110.01016.28
7.2.70.0120.00616.33
7.2.60.0080.01116.37
7.2.50.0110.00616.44
7.2.40.0120.00516.50
7.2.30.0120.00516.50
7.2.20.0100.00916.42
7.2.10.0120.00616.42
7.2.00.0080.00916.35

preferences:
61.37 ms | 400 KiB | 5 Q