3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public $res; public function __construct() { $this->res = fopen('/tmp/a','w'); } } var_dump( $test = new Test(), $a = serialize($test), unserialize($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.4.120.0100.01020.52
8.4.110.0090.01120.64
8.4.100.0110.00717.74
8.4.90.0090.01220.67
8.4.80.0100.01018.88
8.4.70.0130.00717.51
8.4.60.0110.01017.61
8.4.50.0110.00817.95
8.4.40.0060.01217.59
8.4.30.0140.00320.23
8.4.20.0000.00819.62
8.4.10.0120.00619.49
8.3.250.0090.01019.04
8.3.240.0120.00517.29
8.3.230.0040.00416.74
8.3.220.0050.00318.95
8.3.210.0120.00718.48
8.3.200.0100.00916.23
8.3.190.0090.01016.67
8.3.180.0070.00216.70
8.3.170.0110.00716.55
8.3.160.0110.00718.37
8.3.150.0090.00917.14
8.3.140.0000.01416.57
8.3.130.0040.00418.32
8.3.120.0090.00020.92
8.3.110.0160.00316.78
8.3.100.0110.00416.62
8.3.90.0160.00326.77
8.3.80.0090.00018.43
8.3.70.0090.00616.63
8.3.60.0120.00316.88
8.3.50.0120.00618.13
8.3.40.0110.00720.45
8.3.30.0040.01118.69
8.3.20.0040.00424.18
8.3.10.0050.00224.66
8.3.00.0000.00826.16
8.2.290.0120.00717.29
8.2.280.0040.00518.64
8.2.270.0150.00316.77
8.2.260.0120.00618.75
8.2.250.0170.00316.74
8.2.240.0120.00317.34
8.2.230.0080.00020.94
8.2.220.0030.00624.06
8.2.210.0000.00826.77
8.2.200.0070.00416.59
8.2.190.0000.01416.58
8.2.180.0060.00925.92
8.2.170.0070.00718.79
8.2.160.0120.00922.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0080.00019.52
8.2.110.0070.00319.27
8.2.100.0040.00817.91
8.2.90.0040.00419.32
8.2.80.0030.00519.16
8.2.70.0120.00679.33
8.2.60.0120.00679.33
8.2.50.0180.00079.33
8.2.40.0130.00479.33
8.2.30.0110.00679.33
8.2.20.0050.00579.33
8.2.10.0160.00079.33
8.2.00.0130.00379.33
8.1.330.0060.00316.29
8.1.320.0100.01216.29
8.1.310.0040.00416.73
8.1.300.0100.01017.89
8.1.290.0050.00530.84
8.1.280.0140.00725.92
8.1.270.0040.00423.99
8.1.260.0000.00926.35
8.1.250.0040.00428.09
8.1.240.0040.00422.19
8.1.230.0090.00320.96
8.1.220.0080.00017.74
8.1.210.0000.00818.84
8.1.200.0080.00879.33
8.1.190.0080.00879.33
8.1.180.0140.00679.33
8.1.170.0100.00679.33
8.1.160.0140.00279.33
8.1.150.0150.00479.33
8.1.140.0180.00079.33
8.1.130.0040.01379.33
8.1.120.0130.00479.33
8.1.110.0150.00079.33
8.1.100.0110.00679.33
8.1.90.0080.00879.33
8.1.80.0140.00379.33
8.1.70.0060.01279.33
8.1.60.0180.00079.33
8.1.50.0090.00979.33
8.1.40.0170.00379.33
8.1.30.0150.00379.33
8.1.20.0130.00479.33
8.1.10.0180.00379.33
8.1.00.0130.00779.33
8.0.300.0040.00420.16
8.0.290.0180.00079.33
8.0.280.0140.00279.33
8.0.270.0140.00379.33
8.0.260.0080.00879.33
8.0.250.0150.00379.33
8.0.240.0100.00779.33
8.0.230.0060.01179.33
8.0.220.0170.00079.33
8.0.210.0120.00479.33
8.0.200.0140.00379.33
8.0.190.0110.00779.33
8.0.180.0120.00679.33
8.0.170.0110.00579.33
8.0.160.0140.00579.33
8.0.150.0170.00279.33
8.0.140.0040.01379.33
8.0.130.0110.00679.33
8.0.120.0080.00879.33
8.0.110.0130.00379.33
8.0.100.0110.00679.33
8.0.90.0160.00079.33
8.0.80.0170.00079.33
8.0.70.0160.00079.33
8.0.60.0120.00679.33
8.0.50.0160.00079.33
8.0.30.0130.00379.33
8.0.20.0130.00379.33
8.0.10.0100.00779.33
8.0.00.0080.00879.33
7.4.330.0090.00479.33
7.4.320.0140.00379.33
7.4.300.0080.00879.33
7.4.290.0100.00579.33
7.4.280.0140.00279.33
7.4.270.0100.00679.33
7.4.260.0100.00679.33
7.4.250.0130.00479.33
7.4.240.0150.00079.33
7.4.230.0130.00279.33
7.4.220.0120.00279.33
7.4.210.0130.00579.33
7.4.200.0070.01079.33
7.4.190.0100.00579.33
7.4.180.0120.00379.33
7.4.160.0090.00979.33
7.4.150.0100.00779.33
7.4.140.0150.00079.33
7.4.130.0070.00779.33
7.4.120.0080.00879.33
7.4.110.0140.00079.33
7.4.100.0080.00679.33
7.4.90.0160.00079.33
7.4.80.0110.00479.33
7.4.70.0080.00879.33
7.4.60.0070.00779.33
7.4.50.0140.00079.33
7.4.40.0130.00479.33
7.4.30.0150.00079.33
7.4.20.0070.00779.33
7.4.10.0120.00479.33
7.4.00.0040.01279.33
7.3.330.0080.00879.33
7.3.320.0120.00479.33
7.3.310.0110.00579.33
7.3.300.0100.00579.33
7.3.290.0100.00579.33
7.3.280.0160.00079.33
7.3.270.0130.00379.33
7.3.260.0070.00779.33
7.3.250.0070.00779.33
7.3.240.0160.00079.33
7.3.230.0170.00079.33
7.3.220.0160.00079.33
7.3.210.0130.00379.33
7.3.200.0140.00279.33
7.3.190.0150.00379.33
7.3.180.0110.00479.33
7.3.170.0060.01279.33
7.3.160.0150.00479.33
7.3.150.0080.00879.33
7.3.140.0130.00379.33
7.3.130.0160.00079.33
7.3.120.0120.00479.33
7.3.110.0120.00479.33
7.3.100.0150.00079.33
7.3.90.0050.01079.33
7.3.80.0130.00379.33
7.3.70.0080.00679.33
7.3.60.0120.00379.33
7.3.50.0120.00379.33
7.3.40.0120.00279.33
7.3.30.0090.00679.33
7.3.20.0110.00679.33
7.3.10.0110.00579.33
7.3.00.0150.00079.33

preferences:
28.74 ms | 403 KiB | 5 Q