3v4l.org

run code in 300+ PHP versions simultaneously
<?php class H { private $time; public function __construct($time) { $this->time = $time; } public function getTime() { return $this->time; } } $arr = [new H(-3600), new H(0), new H(-10)]; $highest = 0; for($i = 1; $i < count($arr); $i++) { if($arr[$i]->getTime() > $arr[$highest]->getTime()) $highest = $i; } var_dump($arr[$highest]);

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.00318.31
8.3.50.0040.01116.25
8.3.40.0060.00918.81
8.3.30.0170.00318.70
8.3.20.0040.00419.30
8.3.10.0000.00821.69
8.3.00.0000.00722.49
8.2.180.0110.00716.50
8.2.170.0120.00322.96
8.2.160.0100.00719.04
8.2.150.0000.00924.18
8.2.140.0000.00824.66
8.2.130.0040.00422.25
8.2.120.0040.00426.35
8.2.110.0090.00022.24
8.2.100.0040.00719.76
8.2.90.0060.00317.63
8.2.80.0000.00818.84
8.2.70.0050.00318.05
8.2.60.0040.00417.75
8.2.50.0030.00517.61
8.2.40.0050.00317.63
8.2.30.0000.00819.23
8.2.20.0070.00018.15
8.2.10.0040.00418.12
8.2.00.0000.00718.22
8.1.280.0110.01125.92
8.1.270.0080.00023.83
8.1.260.0070.00026.35
8.1.250.0050.00328.09
8.1.240.0060.00323.84
8.1.230.0080.00318.96
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0000.00817.35
8.1.190.0040.00419.43
8.1.180.0000.00818.10
8.1.170.0040.00419.03
8.1.160.0040.00418.95
8.1.150.0040.00420.16
8.1.140.0070.00019.45
8.1.130.0030.00318.82
8.1.120.0000.00717.45
8.1.110.0000.00717.50
8.1.100.0000.00817.52
8.1.90.0030.00517.43
8.1.80.0070.00017.49
8.1.70.0000.00717.45
8.1.60.0000.00917.57
8.1.50.0050.00317.54
8.1.40.0040.00417.53
8.1.30.0000.00717.64
8.1.20.0000.00817.55
8.1.10.0050.00217.58
8.1.00.0040.00417.45
8.0.300.0070.00018.77
8.0.290.0000.00816.63
8.0.280.0030.00318.46
8.0.270.0000.00817.26
8.0.260.0060.00019.03
8.0.250.0040.00416.94
8.0.240.0040.00416.84
8.0.230.0030.00316.94
8.0.220.0070.00016.90
8.0.210.0000.00716.79
8.0.200.0000.00816.99
8.0.190.0000.00817.04
8.0.180.0030.00716.84
8.0.170.0000.00716.88
8.0.160.0040.00416.92
8.0.150.0030.00316.91
8.0.140.0070.00016.77
8.0.130.0030.00313.34
8.0.120.0000.00816.92
8.0.110.0050.00216.80
8.0.100.0030.00516.96
8.0.90.0000.00716.96
8.0.80.0090.00616.92
8.0.70.0000.00716.89
8.0.60.0000.00816.91
8.0.50.0040.00416.74
8.0.30.0120.00717.04
8.0.20.0130.00917.42
8.0.10.0000.00717.08
8.0.00.0110.00816.78
7.4.330.0050.00015.55
7.4.320.0000.00616.52
7.4.300.0000.00616.65
7.4.290.0030.00316.50
7.4.280.0050.00316.52
7.4.270.0030.00316.62
7.4.260.0030.00616.39
7.4.250.0080.00016.60
7.4.240.0040.00416.62
7.4.230.0070.00016.63
7.4.220.0170.01016.61
7.4.210.0060.01016.54
7.4.200.0000.00716.68
7.4.160.0130.00416.56
7.4.150.0100.01317.40
7.4.140.0120.01017.86
7.4.130.0070.01016.52
7.4.120.0080.01016.44
7.4.110.0040.01816.48
7.4.100.0080.00816.61
7.4.90.0090.00916.48
7.4.80.0120.00619.39
7.4.70.0060.01116.57
7.4.60.0100.00916.59
7.4.50.0030.00616.30
7.4.40.0110.00516.51
7.4.30.0120.00416.51
7.4.00.0000.01414.90
7.3.330.0000.00513.27
7.3.320.0020.00213.23
7.3.310.0070.00016.36
7.3.300.0000.00716.36
7.3.290.0110.00316.44
7.3.280.0090.00916.35
7.3.270.0030.01317.40
7.3.260.0090.00716.58
7.3.240.0110.00616.48
7.3.230.0090.00716.34
7.3.210.0060.00916.27
7.3.200.0110.01416.37
7.3.190.0080.00816.43
7.3.180.0120.00316.65
7.3.170.0170.00016.35
7.3.160.0180.00316.67
7.3.120.0090.00915.07
7.3.110.0140.00315.01
7.3.100.0090.00314.87
7.3.90.0070.00714.58
7.3.80.0060.00915.13
7.3.70.0030.01014.77
7.3.60.0060.01014.92
7.3.50.0030.01014.91
7.3.40.0060.01214.85
7.3.30.0030.01014.85
7.3.20.0040.01116.80
7.3.10.0040.01216.80
7.3.00.0100.00316.50
7.2.330.0090.00916.41
7.2.320.0090.00916.39
7.2.310.0070.01016.51
7.2.300.0130.01016.40
7.2.290.0110.01416.63
7.2.240.0100.00015.24
7.2.230.0030.01214.95
7.2.220.0000.01415.01
7.2.210.0070.00714.89
7.2.200.0000.01714.89
7.2.190.0000.01115.14
7.2.180.0000.01514.93
7.2.170.0060.00315.00
7.2.160.0000.01214.52
7.2.150.0000.01017.07
7.2.140.0080.00417.02
7.2.130.0080.00816.64
7.2.120.0000.01516.64
7.2.110.0040.01116.86
7.2.100.0000.01017.01
7.2.90.0030.01016.93
7.2.80.0090.00616.96
7.2.70.0110.00017.07
7.2.60.0040.01116.75
7.2.50.0140.00416.96
7.2.40.0040.00916.79
7.2.30.0000.01216.84
7.2.20.0080.00416.91
7.2.10.0070.00716.77
7.2.00.0030.01016.62
7.1.330.0040.01215.52
7.1.320.0090.00416.02
7.1.310.0040.01115.57
7.1.300.0100.00315.69
7.1.290.0060.00615.78
7.1.280.0040.00815.72
7.1.270.0030.01415.45
7.1.260.0170.00715.84
7.1.250.0040.00815.62
7.1.200.0070.00715.76
7.1.70.0000.01017.25
7.1.60.0110.00716.91
7.1.50.0130.01032.97
7.1.40.0530.01332.45
7.1.30.0230.00332.50
7.1.20.0200.01032.58
7.1.10.0070.00314.57
7.1.00.0000.01014.91
7.0.200.0060.01116.77
7.0.190.0030.01016.55
7.0.180.0030.00714.39
7.0.170.0030.01014.31
7.0.160.0030.01014.25
7.0.150.0000.01014.40
7.0.140.0000.01314.36
7.0.130.0700.00714.40
7.0.120.0030.01314.65
7.0.110.0030.00714.38
7.0.100.0100.00714.32
7.0.90.0370.01014.28
7.0.80.0000.01314.67
7.0.70.0030.00714.44
7.0.60.0200.00314.04
7.0.50.0070.00714.38
7.0.40.0070.00714.60
7.0.30.0130.01014.72
7.0.20.0000.01314.28
7.0.10.0030.01014.63
7.0.00.0330.00714.45

preferences:
34.54 ms | 400 KiB | 5 Q