3v4l.org

run code in 500+ PHP versions simultaneously
<?php phpversion() >= "7.0.0" or die(); class FooBar { public function __construct() { $this->x = 2; var_dump($this); } } $foobar = new Foobar;

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)
7.3.120.0040.01414.78
7.3.110.0000.01114.91
7.3.100.0030.00914.74
7.3.90.0060.00614.88
7.3.80.0060.00914.79
7.3.70.0040.00814.86
7.3.60.0000.01314.77
7.3.50.0040.00814.99
7.3.40.0070.01014.73
7.3.30.0040.01214.63
7.3.20.0040.01116.59
7.3.10.0070.00716.54
7.3.00.0030.00616.48
7.2.240.0100.00314.82
7.2.230.0070.00715.25
7.2.220.0070.00714.84
7.2.210.0000.01414.96
7.2.200.0090.00915.04
7.2.190.0030.01214.94
7.2.180.0070.00715.03
7.2.170.0060.00914.95
7.2.160.0030.01215.17
7.2.150.0070.01016.97
7.2.140.0070.00416.48
7.2.130.0030.00816.80
7.2.120.0060.00617.05
7.2.110.0090.00616.87
7.2.100.0100.00716.76
7.2.90.0070.00716.59
7.2.80.0030.01217.01
7.2.70.0030.01316.86
7.2.60.0090.00317.02
7.2.50.0090.00616.64
7.2.40.0130.00316.75
7.2.30.0000.01616.86
7.2.20.0120.00617.02
7.2.10.0100.00716.79
7.2.00.0110.00316.92
7.1.330.0090.00615.75
7.1.320.0040.01215.62
7.1.310.0030.01015.94
7.1.300.0000.01715.75
7.1.290.0000.01015.71
7.1.280.0070.00315.73
7.1.270.0070.01015.76
7.1.260.0000.01115.71
7.1.250.0060.00615.78
7.1.70.0030.00617.07
7.1.60.0040.02219.36
7.1.50.0070.00716.74
7.1.00.0030.07722.57
7.0.200.0040.00416.81
7.0.60.0030.09019.95
7.0.50.0070.07717.98
7.0.40.0000.09020.18
7.0.30.0370.06020.23
7.0.20.0400.07720.16
7.0.10.0030.04720.33
7.0.00.0070.04720.23
5.6.280.0000.03321.14
5.6.210.0170.07020.60
5.6.200.0030.04318.16
5.6.190.0030.08720.47
5.6.180.0600.06720.62
5.6.170.0230.08720.71
5.6.160.0100.08320.45
5.6.150.0070.08018.29
5.6.140.0000.08318.15
5.6.130.0130.07318.11
5.6.120.0130.07020.99
5.6.110.0100.07320.99
5.6.100.0130.04721.11
5.6.90.0070.04321.10
5.6.80.0170.07320.36
5.5.350.0200.07320.45
5.5.340.0130.06018.08
5.5.330.0070.08720.29
5.5.320.0000.04720.31
5.5.310.0270.08020.50
5.5.300.0100.08017.95
5.5.290.0030.06017.92
5.5.280.0070.09020.96
5.5.270.0070.07320.67
5.5.260.0070.05320.89
5.5.250.0070.07720.69
5.5.240.0330.06020.27

preferences:
36.49 ms | 827 KiB | 5 Q