3v4l.org

run code in 300+ PHP versions simultaneously
<?php Class test { private $counter = 0; public function __construct(){ } public function run(){ $this->counter++; if($this->counter == 10){ return false; } else { return true; } } public function getCounterValue(){ return $this->counter; } } $testje = new test(); do { echo $testje->getCounterValue(); } while($testje->run());

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.0110.00716.50
8.3.50.0180.00322.00
8.3.40.0110.01118.90
8.3.30.0100.00619.03
8.3.20.0000.00720.06
8.3.10.0040.00421.82
8.3.00.0060.00319.23
8.2.180.0180.00418.41
8.2.170.0140.00722.96
8.2.160.0070.00720.52
8.2.150.0040.00424.18
8.2.140.0050.00224.66
8.2.130.0040.00426.16
8.2.120.0050.00319.48
8.2.110.0090.00019.41
8.2.100.0080.00417.63
8.2.90.0000.00819.35
8.2.80.0050.00317.97
8.2.70.0050.00317.59
8.2.60.0040.00418.05
8.2.50.0040.00418.07
8.2.40.0050.00319.94
8.2.30.0080.00318.20
8.2.20.0000.00817.74
8.2.10.0000.00717.98
8.2.00.0070.00017.69
8.1.280.0170.00325.92
8.1.270.0070.00024.66
8.1.260.0080.00026.35
8.1.250.0060.00328.09
8.1.240.0000.00822.20
8.1.230.0040.00817.76
8.1.220.0030.00517.78
8.1.210.0030.00518.77
8.1.200.0030.00717.36
8.1.190.0050.00317.22
8.1.180.0040.00418.10
8.1.170.0040.00420.37
8.1.160.0050.00322.02
8.1.150.0080.00018.93
8.1.140.0030.00517.49
8.1.130.0030.00317.72
8.1.120.0000.00717.52
8.1.110.0070.00017.52
8.1.100.0070.00017.41
8.1.90.0030.00317.52
8.1.80.0040.00417.36
8.1.70.0070.00017.43
8.1.60.0060.00317.64
8.1.50.0000.00817.57
8.1.40.0040.00417.51
8.1.30.0040.00417.66
8.1.20.0050.00317.59
8.1.10.0000.00717.61
8.1.00.0050.00617.36
8.0.300.0000.00718.77
8.0.290.0070.00016.75
8.0.280.0000.00718.41
8.0.270.0050.00317.18
8.0.260.0030.00317.37
8.0.250.0030.00316.95
8.0.240.0000.00916.96
8.0.230.0060.00316.87
8.0.220.0000.00716.84
8.0.210.0030.00316.71
8.0.200.0000.00716.77
8.0.190.0060.00616.93
8.0.180.0040.00416.82
8.0.170.0040.00416.81
8.0.160.0040.00416.75
8.0.150.0080.00016.85
8.0.140.0060.00316.82
8.0.130.0060.00313.32
8.0.120.0070.00016.70
8.0.110.0000.00716.89
8.0.100.0070.00016.90
8.0.90.0070.00016.75
8.0.80.0100.00716.90
8.0.70.0000.00816.77
8.0.60.0050.00516.77
8.0.50.0030.00516.79
8.0.30.0090.01416.91
8.0.20.0130.00817.40
8.0.10.0000.00817.00
8.0.00.0120.00516.92
7.4.330.0000.00615.03
7.4.320.0060.00016.55
7.4.300.0060.00016.49
7.4.290.0040.00416.40
7.4.280.0070.00216.59
7.4.270.0070.00016.51
7.4.260.0030.00316.64
7.4.250.0070.00016.54
7.4.240.0010.00716.54
7.4.230.0000.00716.50
7.4.220.0160.00316.63
7.4.210.0070.00716.59
7.4.200.0030.00316.44
7.4.160.0080.00816.29
7.4.150.0050.01317.40
7.4.140.0150.00517.86
7.4.130.0090.01416.59
7.4.120.0060.01016.39
7.4.110.0150.01016.59
7.4.100.0060.01216.57
7.4.90.0140.00316.57
7.4.80.0060.01519.39
7.4.70.0060.01116.35
7.4.60.0070.01016.38
7.4.50.0030.00316.45
7.4.40.0040.01216.47
7.4.30.0100.01216.61
7.4.00.0070.00714.73
7.3.330.0000.00513.17
7.3.320.0090.00513.09
7.3.310.0000.00716.29
7.3.300.0030.00316.29
7.3.290.0090.00516.28
7.3.280.0080.00716.29
7.3.270.0060.01217.40
7.3.260.0080.01616.39
7.3.250.0080.01016.25
7.3.240.0130.00316.53
7.3.230.0110.01116.41
7.3.210.0120.00616.23
7.3.200.0100.01319.39
7.3.190.0070.01016.38
7.3.180.0120.00616.35
7.3.170.0030.01816.32
7.3.160.0070.01016.41
7.2.330.0090.00916.57
7.2.320.0130.00316.50
7.2.310.0060.01216.53
7.2.300.0130.00316.75
7.2.290.0070.01016.88
7.1.100.0070.00318.09
7.1.70.1120.00615.00
7.1.60.0000.02119.50
7.1.50.0030.01916.90
7.1.00.0000.05022.33
7.0.200.0160.00314.97
7.0.140.0000.07722.09
7.0.100.0000.05019.96
7.0.90.0000.04320.05
7.0.80.0170.03719.89
7.0.70.0000.04320.14
7.0.60.0070.04020.00
7.0.50.0030.04020.22
7.0.40.0100.03720.05
7.0.30.0030.04320.00
7.0.20.0030.04320.08
7.0.10.0070.04020.13
7.0.00.0030.04720.10
5.6.280.0100.06720.90
5.6.250.0100.06320.56
5.6.240.0070.04020.57
5.6.230.0100.03720.63
5.6.220.0000.04320.68
5.6.210.0170.04720.45
5.6.200.0030.04321.05
5.6.190.0000.04321.05
5.6.180.0100.04021.07
5.6.170.0170.02721.05
5.6.160.0030.04020.94
5.6.150.0000.06720.96
5.6.140.0000.04021.09
5.6.130.0000.04721.00
5.6.120.0130.07321.05
5.6.110.0100.07721.07
5.6.100.0130.07721.11
5.6.90.0030.08320.99
5.6.80.0130.06720.32
5.6.70.0070.08720.39
5.6.60.0200.06320.39
5.6.50.0100.07720.50
5.6.40.0100.06720.38
5.6.30.0070.08020.41
5.6.20.0170.03720.40
5.6.10.0030.08720.45
5.6.00.0130.08020.43
5.5.380.0000.06320.49
5.5.370.0070.04020.43
5.5.360.0070.05020.36
5.5.350.0000.04320.46
5.5.340.0100.04020.87
5.5.330.0070.04320.88
5.5.320.0000.04320.79
5.5.310.0030.04720.88
5.5.300.0070.03720.80
5.5.290.0070.08020.87
5.5.280.0070.07720.90
5.5.270.0030.07720.89
5.5.260.0100.07720.77
5.5.250.0030.04720.65
5.5.240.0130.07320.17
5.5.230.0230.04720.31
5.5.220.0100.04720.26
5.5.210.0070.07720.23
5.5.200.0100.07720.30
5.5.190.0130.04720.23
5.5.180.0030.08320.21
5.5.160.0130.07320.18
5.5.150.0000.06020.11
5.5.140.0130.07020.20
5.5.130.0100.07020.23
5.5.120.0030.05720.14
5.5.110.0200.05320.22
5.5.100.0070.04720.02
5.5.90.0170.06020.12
5.5.80.0030.04320.11
5.5.70.0030.08019.97
5.5.60.0100.05019.97
5.5.50.0100.04720.06
5.5.40.0130.06320.11
5.5.30.0070.08019.96
5.5.20.0130.06020.10
5.5.10.0100.07320.12
5.5.00.0130.07320.01
5.4.450.0070.08319.36
5.4.440.0170.07019.23
5.4.430.0100.07319.40
5.4.420.0130.07319.46
5.4.410.0130.07019.36
5.4.400.0030.04319.19
5.4.390.0030.08319.18
5.4.380.0100.07319.23
5.4.370.0130.07019.05
5.4.360.0100.06019.24
5.4.350.0100.06719.21
5.4.340.0130.07019.13
5.4.320.0030.05319.25
5.4.310.0100.04319.17
5.4.300.0070.08018.90
5.4.290.0070.04719.14
5.4.280.0000.08319.13
5.4.270.0070.06718.90
5.4.260.0070.07319.03
5.4.250.0100.06319.09
5.4.240.0070.05719.06
5.4.230.0100.04019.04
5.4.220.0130.06319.03
5.4.210.0030.06018.87
5.4.200.0100.06319.18
5.4.190.0070.06018.84
5.4.180.0130.07019.15
5.4.170.0070.03719.03
5.4.160.0000.08018.88
5.4.150.0070.04018.85
5.4.140.0030.10016.34
5.4.130.0170.04316.50
5.4.120.0100.03016.19
5.4.110.0030.07716.45
5.4.100.0100.07016.50
5.4.90.0100.07016.44
5.4.80.0170.06316.45
5.4.70.0100.07316.42
5.4.60.0100.06716.49
5.4.50.0030.04716.32
5.4.40.0030.07316.39
5.4.30.0200.06016.45
5.4.20.0130.07316.46
5.4.10.0030.04316.47
5.4.00.0130.06315.86
5.3.290.0030.06714.79
5.3.280.0070.06314.54
5.3.270.0070.06714.59
5.3.260.0070.07714.59
5.3.250.0000.07314.71
5.3.240.0000.07714.71
5.3.230.0070.07314.55
5.3.220.0070.07014.66
5.3.210.0030.09014.63
5.3.200.0100.07014.68
5.3.190.0100.07314.62
5.3.180.0070.07714.54
5.3.170.0100.04014.54
5.3.160.0070.07314.60
5.3.150.0100.06014.61
5.3.140.0030.07714.63
5.3.130.0130.06314.52
5.3.120.0170.03014.55
5.3.110.0030.08014.60
5.3.100.0070.07714.09
5.3.90.0070.06014.13
5.3.80.0030.06014.04
5.3.70.0100.06714.15
5.3.60.0130.03314.12
5.3.50.0000.07314.02
5.3.40.0100.05713.93
5.3.30.0100.06314.00
5.3.20.0100.05313.61
5.3.10.0100.06013.59
5.3.00.0030.07013.76
5.2.170.0030.06011.22
5.2.160.0030.04311.25
5.2.150.0030.04011.21
5.2.140.0000.04311.25
5.2.130.0070.06011.18
5.2.120.0070.06011.18
5.2.110.0070.06011.12
5.2.100.0030.06311.20
5.2.90.0000.06311.00
5.2.80.0030.06711.24
5.2.70.0030.06311.13
5.2.60.0070.06711.14
5.2.50.0130.05310.98
5.2.40.0030.03310.99
5.2.30.0070.07011.04
5.2.20.0000.03710.88
5.2.10.0000.05310.85
5.2.00.0100.02710.75
5.1.60.0070.04310.04
5.1.50.0100.04710.08
5.1.40.0030.0539.98
5.1.30.0100.02710.26
5.1.20.0070.04310.37
5.1.10.0030.05710.18
5.1.00.0030.0379.93
5.0.50.0070.0408.49
5.0.40.0000.0508.53
5.0.30.0000.0638.49
5.0.20.0000.0408.49
5.0.10.0000.0308.49
5.0.00.0030.0378.49
4.4.90.0000.0378.49
4.4.80.0070.0308.49
4.4.70.0000.0208.49
4.4.60.0000.0308.49
4.4.50.0000.0378.49
4.4.40.0030.0538.49
4.4.30.0070.0278.49
4.4.20.0000.0238.49
4.4.10.0030.0378.49
4.4.00.0030.0278.49
4.3.110.0030.0178.49
4.3.100.0000.0338.49
4.3.90.0000.0338.49
4.3.80.0000.0578.49
4.3.70.0070.0138.49
4.3.60.0000.0378.49
4.3.50.0070.0138.49
4.3.40.0030.0408.49
4.3.30.0030.0378.49
4.3.20.0030.0338.49
4.3.10.0030.0308.49
4.3.00.0000.0378.49

preferences:
39.13 ms | 401 KiB | 5 Q