3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public $x; public function __construct() { $this->x = 1; } public function __sleep() { return [ 'x', '' ]; } } $a = new A; var_dump( unserialize( serialize( $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.0070.01016.63
8.3.60.0180.00318.49
8.3.50.0070.01018.27
8.3.40.0040.01118.75
8.3.30.0140.00018.68
8.3.20.0000.00818.54
8.3.10.0030.00623.71
8.3.00.0000.00721.94
8.2.180.0120.00616.75
8.2.170.0150.00022.96
8.2.160.0040.01119.29
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0040.00420.74
8.2.110.0090.00022.24
8.2.100.0050.00517.78
8.2.90.0030.00617.75
8.2.80.0030.00619.34
8.2.70.0040.00417.78
8.2.60.0000.00818.09
8.2.50.0060.00318.10
8.2.40.0030.00519.17
8.2.30.0030.00620.53
8.2.20.0070.00017.90
8.2.10.0050.00318.10
8.2.00.0000.00819.31
8.1.280.0120.00625.92
8.1.270.0000.00820.67
8.1.260.0070.00026.35
8.1.250.0000.00728.09
8.1.240.0060.00323.98
8.1.230.0090.00322.57
8.1.220.0030.00617.74
8.1.210.0090.00018.77
8.1.200.0090.00017.36
8.1.190.0060.00317.22
8.1.180.0080.00018.10
8.1.170.0000.00818.61
8.1.160.0040.00418.78
8.1.150.0070.00018.75
8.1.140.0040.00420.90
8.1.130.0040.00419.05
8.1.120.0050.00317.38
8.1.110.0020.00517.29
8.1.100.0080.00017.43
8.1.90.0000.00817.38
8.1.80.0040.00417.44
8.1.70.0030.00317.39
8.1.60.0040.00817.57
8.1.50.0080.00017.50
8.1.40.0030.00717.45
8.1.30.0030.00517.62
8.1.20.0040.00417.60
8.1.10.0080.00017.48
8.1.00.0080.00017.45
8.0.300.0000.00819.82
8.0.290.0040.00416.75
8.0.280.0040.00418.30
8.0.270.0030.00317.19
8.0.260.0030.00316.81
8.0.250.0030.00316.93
8.0.240.0050.00316.86
8.0.230.0030.00316.89
8.0.220.0000.00716.84
8.0.210.0030.00316.88
8.0.200.0030.00316.96
8.0.190.0040.00417.01
8.0.180.0080.00016.92
8.0.170.0040.00416.80
8.0.160.0030.00716.91
8.0.150.0000.00816.77
8.0.140.0030.00716.70
8.0.130.0000.00713.25
8.0.120.0030.00616.79
8.0.110.0040.00416.88
8.0.100.0080.00016.92
8.0.90.0040.00416.91
8.0.80.0140.00516.88
8.0.70.0000.00816.76
8.0.60.0070.00016.88
8.0.50.0000.00716.90
8.0.30.0100.00717.00
8.0.20.0090.01117.40
8.0.10.0050.00316.98
8.0.00.0060.01216.95
7.4.330.0000.00415.55
7.4.320.0000.00616.33
7.4.300.0060.00016.53
7.4.290.0000.00716.39
7.4.280.0000.00816.50
7.4.270.0030.00316.65
7.4.260.0070.00016.49
7.4.250.0080.00016.55
7.4.240.0040.00416.58
7.4.230.0030.00316.62
7.4.220.0000.00716.41
7.4.210.0090.00616.55
7.4.200.0040.00416.63
7.4.160.0090.00716.56
7.4.140.0120.00717.86
7.4.130.0030.01416.58
7.4.120.0090.00916.45
7.4.110.0130.01016.46
7.4.100.0100.00716.42
7.4.90.0040.01516.45
7.4.80.0030.01319.39
7.4.70.0130.00316.29
7.4.60.0090.00616.39
7.4.50.0030.01316.33
7.4.40.0120.01216.46
7.4.00.0140.00415.06
7.3.330.0000.00613.21
7.3.320.0050.00013.40
7.3.310.0030.00316.35
7.3.300.0000.00716.21
7.3.290.0000.00716.23
7.3.280.0090.00916.41
7.3.260.0130.00816.40
7.3.240.0120.00716.38
7.3.230.0060.01016.37
7.3.210.0060.01216.58
7.3.200.0060.01016.32
7.3.190.0090.00616.60
7.3.180.0090.01216.46
7.3.170.0080.00916.63
7.3.160.0090.00916.59
7.3.10.0080.00416.58
7.3.00.0030.01016.62
7.2.330.0070.01016.48
7.2.320.0090.00916.66
7.2.310.0070.01416.52
7.2.300.0130.00316.56
7.2.290.0030.01316.70
7.2.130.0030.01416.87
7.2.120.0040.01216.51
7.2.110.0000.00916.72
7.2.100.0040.00716.89
7.2.90.1310.00715.88
7.2.80.1210.00415.88
7.2.70.1150.00615.83
7.2.60.1170.00915.85
7.2.50.1210.01015.94
7.2.40.0990.00815.67
7.2.30.1180.01415.81
7.2.20.0960.00915.82
7.2.10.1200.00615.54
7.2.00.0970.00915.83
7.1.250.0080.00415.78
7.1.240.0040.00815.80
7.1.230.0030.00615.82
7.1.220.0030.00915.48
7.1.210.1860.00614.66
7.1.200.1220.01014.79
7.1.190.1270.00714.86
7.1.180.1130.00314.73
7.1.170.1050.00914.74
7.1.160.1290.00414.71
7.1.150.1140.01214.79
7.1.140.1150.01014.97
7.1.130.1080.00514.69
7.1.120.1210.00914.76
7.1.110.1180.00514.81
7.1.100.1500.01014.61
7.1.90.1230.00514.83
7.1.80.1290.00714.73
7.1.70.1130.01014.71
7.1.60.1520.00723.61
7.1.50.0600.01023.67
7.1.40.0710.00723.79
7.1.30.0550.01223.61
7.1.20.0320.00823.61
7.1.10.0100.00714.80
7.1.00.0680.00814.89
7.0.330.0060.00615.25
5.6.380.0030.00314.41

preferences:
74.02 ms | 400 KiB | 5 Q