3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a{ public $res = 1; public function abc( int $d){ for ($x=1; $x<$d; $x++) $this->res = $this->res * $this->abc( $x); return $this->res; } } $a = new a(); echo $a->abc(10);

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.0120.00316.50
8.3.50.0070.01416.16
8.3.40.0110.00418.71
8.3.30.0070.00718.71
8.3.20.0040.00420.39
8.3.10.0070.00021.78
8.3.00.0070.00023.48
8.2.180.0150.00316.50
8.2.170.0100.01018.84
8.2.160.0100.00322.96
8.2.150.0050.00325.66
8.2.140.0000.00824.66
8.2.130.0070.01119.57
8.2.120.0050.00326.35
8.2.110.0080.00022.19
8.2.100.0070.00418.05
8.2.90.0060.00319.09
8.2.80.0050.00317.97
8.2.70.0080.00017.63
8.2.60.0030.00717.80
8.2.50.0040.00418.07
8.2.40.0030.00522.15
8.2.30.0040.00420.59
8.2.20.0040.00417.61
8.2.10.0080.00018.00
8.2.00.0030.00618.15
8.1.280.0040.01125.92
8.1.270.0030.00623.95
8.1.260.0040.00428.09
8.1.250.0000.00828.09
8.1.240.0080.00820.46
8.1.230.0110.00018.91
8.1.220.0080.00017.79
8.1.210.0040.00418.77
8.1.200.0030.00617.48
8.1.190.0040.00417.35
8.1.180.0090.00018.10
8.1.170.0040.00418.25
8.1.160.0040.00420.66
8.1.150.0040.00418.71
8.1.140.0060.00319.52
8.1.130.0030.00317.63
8.1.120.0040.00417.38
8.1.110.0000.00717.41
8.1.100.0030.00317.42
8.1.90.0020.00517.29
8.1.80.0000.00717.38
8.1.70.0000.00717.29
8.1.60.0050.00317.47
8.1.50.0040.00417.56
8.1.40.0030.00617.58
8.1.30.0040.00417.60
8.1.20.0040.00417.54
8.1.10.0050.00317.64
8.1.00.0030.00517.50
8.0.300.0000.00718.77
8.0.290.0080.00016.63
8.0.280.0070.00018.43
8.0.270.0030.00317.32
8.0.260.0030.00517.13
8.0.250.0030.00316.92
8.0.240.0000.00616.89
8.0.230.0070.00316.85
8.0.220.0000.00716.84
8.0.210.0040.00416.71
8.0.200.0060.00316.82
8.0.190.0030.00516.86
8.0.180.0050.00216.75
8.0.170.0000.00816.91
8.0.160.0030.00316.82
8.0.150.0070.00016.69
8.0.140.0070.00316.82
8.0.130.0030.00313.30
8.0.120.0050.00216.70
8.0.110.0040.00416.80
8.0.100.0050.00216.89
8.0.90.0070.00016.70
8.0.80.0110.01116.80
8.0.70.0050.00216.70
8.0.60.0050.00216.85
8.0.50.0000.00816.72
8.0.30.0120.00517.00
8.0.20.0150.00617.40
8.0.10.0040.00416.85
8.0.00.0060.01216.82
7.4.330.0000.00516.66
7.4.320.0000.00616.54
7.4.300.0000.00716.52
7.4.290.0070.00016.64
7.4.280.0000.01016.41
7.4.270.0000.00716.54
7.4.260.0030.00316.64
7.4.250.0050.00216.43
7.4.240.0010.00616.43
7.4.230.0030.00316.62
7.4.220.0100.00716.63
7.4.210.0060.00816.68
7.4.200.0040.00416.51
7.4.160.0060.00916.55
7.4.150.0160.00617.40
7.4.140.0120.00717.86
7.4.130.0090.00816.45
7.4.120.0120.00516.49
7.4.110.0190.00016.50
7.4.100.0080.00816.43
7.4.90.0120.00616.58
7.4.80.0000.01819.39
7.4.70.0070.01016.45
7.4.60.0120.00816.50
7.4.50.0050.00816.33
7.4.40.0090.00616.18
7.4.30.0100.00716.68
7.4.00.0030.01115.07
7.3.330.0000.00613.15
7.3.320.0030.00313.39
7.3.310.0040.00416.16
7.3.300.0000.00716.20
7.3.290.0100.00716.32
7.3.280.0090.00616.32
7.3.270.0110.00717.40
7.3.260.0120.00616.62
7.3.250.0030.01616.62
7.3.240.0070.01016.61
7.3.230.0100.00716.61
7.3.210.0070.01016.50
7.3.200.0210.00019.39
7.3.190.0030.01616.54
7.3.180.0060.00916.37
7.3.170.0180.00416.41
7.3.160.0090.01216.50
7.3.120.0030.01314.68
7.3.110.0070.00714.87
7.3.100.0160.00014.75
7.3.90.0120.00314.75
7.3.80.0110.00014.90
7.3.70.0030.00614.61
7.3.60.0040.01114.94
7.3.50.0130.00314.78
7.3.40.0120.00314.69
7.3.30.0000.01214.96
7.3.20.0130.00316.45
7.3.10.0060.00916.65
7.3.00.0090.00616.78
7.2.330.0150.00316.79
7.2.320.0070.01016.44
7.2.310.0060.01516.64
7.2.300.0180.00016.77
7.2.290.0070.01516.74
7.2.250.0160.00314.96
7.2.240.0090.00915.19
7.2.230.0160.00314.90
7.2.220.0000.00915.20
7.2.210.0000.01214.82
7.2.200.0040.00715.01
7.2.190.0030.01414.75
7.2.180.0070.01015.25
7.2.170.0030.01015.14
7.2.60.0080.00516.87
7.2.00.0030.01219.06
7.1.330.0100.00615.85
7.1.320.0070.00315.68
7.1.310.0090.00615.57
7.1.300.0100.00615.64
7.1.290.0120.00315.95
7.1.280.0030.01015.69
7.1.270.0000.01815.79
7.1.260.0040.01415.56
7.1.200.0040.00815.89
7.1.100.0080.00318.04
7.1.70.0050.00316.89
7.1.60.0130.01319.21
7.1.50.0070.00416.98
7.1.00.0030.07022.33
7.0.200.0060.00316.68
7.0.60.0030.08021.73
7.0.50.0030.05717.96
7.0.40.0100.03720.40
7.0.30.0300.07320.16
7.0.20.0230.08320.30
7.0.10.0170.06320.05
7.0.00.0130.07720.06
5.6.280.0030.04721.11
5.6.210.0070.07720.67
5.6.200.0030.04018.23
5.6.190.0100.07720.51
5.6.180.0400.04320.65
5.6.170.0200.05320.58
5.6.160.0100.08020.44
5.6.150.0000.08718.22
5.6.140.0170.07018.27
5.6.130.0000.04718.14
5.6.120.0000.09721.15
5.6.110.0030.08721.11
5.6.100.0100.05021.04
5.6.90.0100.06020.99
5.6.80.0100.07320.42
5.5.350.0130.04320.53
5.5.340.0070.03717.98
5.5.330.0070.08020.46
5.5.320.0700.05720.33
5.5.310.0170.04020.34
5.5.300.0000.04317.97
5.5.290.0130.07717.94
5.5.280.0100.08320.68
5.5.270.0100.07720.79
5.5.260.0030.06720.79
5.5.250.0100.05320.59
5.5.240.0130.04020.19

preferences:
48.65 ms | 400 KiB | 5 Q