3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { static $x = 1; public function a(){ static::$x += 1; return static::$x; } } class B extends A { public function a(){ parent::a(); return static::$x; } } $b = new B; echo $b->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.40.0110.00418.92
8.3.30.0150.00019.09
8.3.20.0060.00320.30
8.3.10.0000.00820.54
8.3.00.0050.00319.25
8.2.170.0070.00722.96
8.2.160.0070.00720.39
8.2.150.0000.00724.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0080.00022.09
8.2.110.0070.00421.12
8.2.100.0070.00418.09
8.2.90.0040.00419.17
8.2.80.0080.00017.97
8.2.70.0040.00417.63
8.2.60.0050.00317.93
8.2.50.0070.00318.07
8.2.40.0040.00418.33
8.2.30.0030.00619.24
8.2.20.0040.00417.70
8.2.10.0070.00018.04
8.2.00.0000.00817.68
8.1.270.0000.00823.96
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0070.01021.37
8.1.230.0110.00019.61
8.1.220.0040.00417.74
8.1.210.0000.00918.77
8.1.200.0060.00317.36
8.1.190.0060.00317.23
8.1.180.0050.00318.10
8.1.170.0090.00318.34
8.1.160.0040.00421.85
8.1.150.0000.00718.83
8.1.140.0000.00817.43
8.1.130.0030.00317.78
8.1.120.0000.00717.42
8.1.110.0080.00017.28
8.1.100.0030.00517.34
8.1.90.0040.00417.37
8.1.80.0060.00317.31
8.1.70.0000.00717.31
8.1.60.0040.00417.57
8.1.50.0000.00817.44
8.1.40.0000.00817.53
8.1.30.0050.00317.53
8.1.20.0050.00217.71
8.1.10.0030.00517.48
8.1.00.0000.00717.44
8.0.300.0030.00518.77
8.0.290.0000.00816.63
8.0.280.0070.00018.37
8.0.270.0070.00017.23
8.0.260.0000.00617.13
8.0.250.0030.00316.94
8.0.240.0030.00316.84
8.0.230.0030.00316.79
8.0.220.0050.00216.85
8.0.210.0040.00416.88
8.0.200.0000.00616.75
8.0.190.0000.00716.78
8.0.180.0030.00316.88
8.0.170.0030.00616.82
8.0.160.0000.00716.70
8.0.150.0040.00416.64
8.0.140.0000.00816.73
8.0.130.0060.00013.26
8.0.120.0050.00216.82
8.0.110.0040.00416.84
8.0.100.0040.00416.69
8.0.90.0040.00416.71
8.0.80.0080.00716.77
8.0.70.0050.00216.89
8.0.60.0040.00416.78
8.0.50.0000.00716.80
8.0.30.0080.01016.99
8.0.20.0140.00917.40
8.0.10.0000.00817.01
8.0.00.0090.01116.73
7.4.330.0000.00515.03
7.4.320.0000.00616.54
7.4.300.0060.00016.52
7.4.290.0000.00716.50
7.4.280.0030.00616.43
7.4.270.0030.00316.62
7.4.260.0000.00716.38
7.4.250.0040.00416.31
7.4.240.0020.00516.49
7.4.230.0030.00316.69
7.4.220.0070.01116.70
7.4.210.0030.01016.53
7.4.200.0000.00716.40
7.4.160.0060.00916.51
7.4.150.0070.01617.40
7.4.140.0070.01217.86
7.4.130.0070.01216.42
7.4.120.0130.00616.41
7.4.110.0130.00316.30
7.4.100.0110.00816.63
7.4.90.0130.01016.49
7.4.80.0270.01316.67
7.4.70.0130.00416.39
7.4.60.0070.01016.39
7.4.50.0020.00216.40
7.4.40.0060.01016.41
7.4.30.0000.01616.55
7.4.00.0060.00915.11
7.3.330.0030.00313.21
7.3.320.0050.00013.33
7.3.310.0000.00716.21
7.3.300.0030.00316.38
7.3.290.0000.01416.38
7.3.280.0080.00816.37
7.3.270.0140.00417.40
7.3.260.0120.00616.48
7.3.250.0100.00716.44
7.3.240.0110.01116.55
7.3.230.0140.00416.39
7.3.210.0060.01116.44
7.3.200.0060.01319.39
7.3.190.0100.01016.58
7.3.180.0100.00716.41
7.3.170.0070.01116.45
7.3.160.0070.01116.34
7.2.330.0030.01416.82
7.2.320.0060.01216.46
7.2.310.0100.01016.30
7.2.300.0120.01116.78
7.2.290.0150.00316.73
7.2.60.0040.01216.63
7.2.00.0000.00919.65
7.1.200.0060.00915.41
7.1.100.0030.01017.94
7.1.70.0070.00716.95
7.1.60.0120.01219.32
7.1.50.0090.00916.84
7.1.00.0030.07722.36
7.0.200.0000.00816.51
7.0.140.0070.07022.00
7.0.60.0070.08020.07
7.0.50.0030.05717.86
7.0.40.0070.04720.19
7.0.30.0200.04020.30
7.0.20.0270.08320.23
7.0.10.0030.08020.08
7.0.00.0070.05320.23
5.6.280.0030.07321.07
5.6.210.0070.03720.61
5.6.200.0130.07718.16
5.6.190.0130.04020.63
5.6.180.3200.04320.65
5.6.170.0200.05020.57
5.6.160.0130.07720.50
5.6.150.0030.04018.25
5.6.140.0070.05318.15
5.6.130.0070.08018.20
5.6.120.0030.04721.07
5.6.110.0070.06021.11
5.6.100.0100.07721.11
5.6.90.0000.04320.97
5.6.80.0070.08020.52
5.6.70.4400.04020.37
5.5.350.0330.07320.45
5.5.340.0130.06317.98
5.5.330.0030.07020.30
5.5.320.0400.06020.28
5.5.310.0330.07020.34
5.5.300.0100.03718.08
5.5.290.0100.08318.07
5.5.280.0070.07020.89
5.5.270.0070.04020.78
5.5.260.0130.08020.82
5.5.250.0100.03720.55
5.5.240.0200.07020.27
5.4.450.0130.07019.45
5.4.440.0870.06019.16
5.4.430.0970.04319.59
5.4.420.0070.05719.44
5.4.410.0830.04019.34
5.4.400.0930.06318.98
5.4.390.0900.05719.32
5.4.380.0430.07018.63
5.4.370.0370.05318.76
5.4.360.0370.04018.61
5.4.350.0300.05318.70
5.4.340.0330.05718.74
5.4.320.0050.03812.51
5.4.310.0080.03712.50
5.4.300.0040.04012.51
5.4.290.0070.03912.50
5.4.280.0060.03412.39
5.4.270.0080.03512.40
5.4.260.0090.03312.40
5.4.250.0070.03512.40
5.4.240.0080.03312.39
5.4.230.0060.04112.39
5.4.220.0080.03312.39
5.4.210.0060.03512.39
5.4.200.0060.03612.39
5.4.190.0040.03712.39
5.4.180.0040.03712.39
5.4.170.0060.03612.40
5.4.160.0090.03212.40
5.4.150.0060.03712.39
5.4.140.0070.03512.07
5.4.130.0060.03512.06
5.4.120.0070.03312.02
5.4.110.0100.03612.02
5.4.100.0070.03712.02
5.4.90.0090.03212.01
5.4.80.0080.03412.02
5.4.70.0060.03412.01
5.4.60.0070.03212.01
5.4.50.0030.03712.01
5.4.40.0060.03412.00
5.4.30.0090.03912.00
5.4.20.0080.03412.00
5.4.10.0120.03212.00
5.4.00.0080.03511.48
5.3.290.0070.04212.80
5.3.280.0080.03812.71
5.3.270.0070.03912.72
5.3.260.0060.04012.71
5.3.250.0050.03812.71
5.3.240.0050.03912.72
5.3.230.0030.04112.70
5.3.220.0060.04012.68
5.3.210.0040.04012.68
5.3.200.0040.03812.68
5.3.190.0050.03812.68
5.3.180.0070.03512.67
5.3.170.0050.03712.67
5.3.160.0070.03712.67
5.3.150.0090.03812.68
5.3.140.0090.03312.66
5.3.130.0100.03412.66
5.3.120.0070.03712.65
5.3.110.0070.03712.66
5.3.100.0070.03612.12
5.3.90.0060.03712.11
5.3.80.0040.03812.09
5.3.70.0100.03312.10
5.3.60.0050.03712.08
5.3.50.0070.03512.03
5.3.40.0080.04212.03
5.3.30.0070.03311.98
5.3.20.0040.03611.76
5.3.10.0040.03711.73
5.3.00.0050.03711.72
5.2.170.0020.0339.23
5.2.160.0020.0319.23
5.2.150.0020.0339.23
5.2.140.0040.0309.22
5.2.130.0020.0319.18
5.2.120.0040.0299.18
5.2.110.0100.0299.18
5.2.100.0080.0249.18
5.2.90.0070.0269.18
5.2.80.0070.0279.17
5.2.70.0060.0289.18
5.2.60.0050.0299.13
5.2.50.0030.0349.09
5.2.40.0050.0289.07
5.2.30.0070.0289.05
5.2.20.0080.0269.04
5.2.10.0060.0278.95
5.2.00.0060.0278.80
5.1.60.0050.0238.09
5.1.50.0040.0248.09
5.1.40.0060.0228.07
5.1.30.0040.0278.42
5.1.20.0050.0268.44
5.1.10.0050.0268.16
5.1.00.0060.0238.16
5.0.50.0050.0216.64
5.0.40.0040.0196.50
5.0.30.0040.0306.32
5.0.20.0070.0226.28
5.0.10.0030.0226.26
5.0.00.0030.0346.25
4.4.90.0030.0174.78
4.4.80.0040.0144.75
4.4.70.0030.0204.75
4.4.60.0030.0154.76
4.4.50.0040.0184.77
4.4.40.0030.0314.71
4.4.30.0010.0184.75
4.4.20.0040.0224.84
4.4.10.0030.0204.85
4.4.00.0020.0354.76
4.3.110.0040.0224.67
4.3.100.0020.0154.67
4.3.90.0040.0134.64
4.3.80.0010.0334.59
4.3.70.0060.0194.63
4.3.60.0030.0144.63
4.3.50.0020.0204.63
4.3.40.0010.0264.54
4.3.30.0000.0183.30
4.3.20.0020.0233.28
4.3.10.0040.0253.24
4.3.00.0030.0236.86

preferences:
50.73 ms | 400 KiB | 5 Q