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.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.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.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:
39.03 ms | 401 KiB | 5 Q