3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function a() { static::foo(); } static public function foo() { echo 'A'; } } class B { public function b() { A::a2(); } static public function foo() { echo 'B'; } } B::a(); $b = new B; $b->b();

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.0070.00718.53
8.3.50.0080.00721.99
8.3.40.0070.00718.59
8.3.30.0090.00918.90
8.3.20.0000.00820.16
8.3.10.0050.00321.92
8.3.00.0040.00422.45
8.2.180.0150.00316.63
8.2.170.0150.00022.96
8.2.160.0070.00718.79
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0070.01026.16
8.2.120.0080.00019.23
8.2.110.0090.00022.25
8.2.100.0120.00017.84
8.2.90.0000.00917.60
8.2.80.0000.00817.97
8.2.70.0110.00017.50
8.2.60.0040.00717.79
8.2.50.0060.00318.07
8.2.40.0070.00018.16
8.2.30.0030.00518.02
8.2.20.0040.00417.67
8.2.10.0080.00019.49
8.2.00.0000.00817.68
8.1.280.0150.00025.92
8.1.270.0050.00322.02
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0060.00322.48
8.1.230.0070.00420.99
8.1.220.0000.00817.74
8.1.210.0050.00318.85
8.1.200.0030.00617.22
8.1.190.0040.00417.18
8.1.180.0000.00818.54
8.1.170.0050.00318.58
8.1.160.0050.00321.96
8.1.150.0030.00618.50
8.1.140.0000.00717.32
8.1.130.0000.00717.68
8.1.120.0030.00317.41
8.1.110.0040.00417.22
8.1.100.0040.00417.34
8.1.90.0070.00017.38
8.1.80.0080.00017.35
8.1.70.0040.00417.32
8.1.60.0030.00617.41
8.1.50.0080.00017.51
8.1.40.0050.00317.32
8.1.30.0040.00417.50
8.1.20.0040.00417.64
8.1.10.0040.00417.52
8.1.00.0000.00817.47
8.0.300.0040.00419.90
8.0.290.0030.00516.75
8.0.280.0000.00718.39
8.0.270.0080.00017.23
8.0.260.0000.00616.80
8.0.250.0070.00016.93
8.0.240.0020.00516.89
8.0.230.0030.00316.96
8.0.220.0000.00716.81
8.0.210.0000.00816.84
8.0.200.0030.00617.02
8.0.190.0000.00916.87
8.0.180.0000.00716.91
8.0.170.0040.00416.93
8.0.160.0050.00216.84
8.0.150.0000.00716.89
8.0.140.0040.00416.79
8.0.130.0060.00013.39
8.0.120.0040.00416.90
8.0.110.0040.00416.93
8.0.100.0000.00816.79
8.0.90.0040.00416.70
8.0.80.0090.00616.79
8.0.70.0040.00416.80
8.0.60.0070.00016.79
8.0.50.0000.00716.76
8.0.30.0080.01217.00
8.0.20.0080.01017.40
8.0.10.0000.00716.91
8.0.00.0120.00916.74
7.4.330.0020.00215.00
7.4.320.0060.00016.49
7.4.300.0000.00616.59
7.4.290.0030.00316.60
7.4.280.0000.00716.54
7.4.270.0000.00716.54
7.4.260.0000.00716.54
7.4.250.0040.00416.41
7.4.240.0040.00316.43
7.4.230.0000.00716.63
7.4.220.0150.00416.41
7.4.210.0050.00916.46
7.4.200.0030.00316.60
7.4.190.0070.00016.50
7.4.160.0090.00916.27
7.4.150.0060.01017.40
7.4.140.0070.01317.86
7.4.130.0090.00916.50
7.4.120.0120.00716.38
7.4.110.0140.00316.57
7.4.100.0110.00616.55
7.4.90.0070.01416.46
7.4.80.0070.01119.39
7.4.70.0120.00616.32
7.4.60.0070.01416.38
7.4.50.0030.00516.44
7.4.40.0040.01122.77
7.4.30.0070.01116.31
7.4.00.0060.01114.77
7.3.330.0000.00513.13
7.3.320.0000.00513.37
7.3.310.0000.00716.15
7.3.300.0030.00316.13
7.3.290.0030.01216.34
7.3.280.0090.00716.32
7.3.270.0130.00317.40
7.3.260.0110.00816.39
7.3.250.0080.00516.41
7.3.240.0040.01416.57
7.3.230.0070.01016.39
7.3.210.0140.00316.35
7.3.200.0030.01319.39
7.3.190.0100.00716.16
7.3.180.0090.01216.42
7.3.170.0090.00616.39
7.3.160.0000.01716.42
7.3.120.0100.00714.76
7.3.110.0090.00914.93
7.3.100.0040.01514.75
7.3.90.0040.00814.67
7.3.80.0060.00614.64
7.3.70.0140.00014.66
7.3.60.0060.00914.60
7.3.50.0050.00514.86
7.3.40.0000.01214.88
7.3.30.0050.00514.64
7.3.20.0060.00616.50
7.3.10.0030.00716.73
7.3.00.0080.00716.38
7.2.330.0030.01416.59
7.2.320.0120.01216.30
7.2.310.0160.00316.32
7.2.300.0090.01416.59
7.2.290.0070.01116.32
7.2.250.0070.01314.98
7.2.240.0130.00714.93
7.2.230.0070.01014.78
7.2.220.0050.00514.72
7.2.210.0130.00014.77
7.2.200.0070.01014.84
7.2.190.0090.00614.70
7.2.180.0090.00615.00
7.2.170.0080.00814.91
7.2.130.0000.01316.43
7.2.120.0080.00416.82
7.2.110.0160.01216.73
7.2.100.0090.00716.79
7.2.90.0100.01116.75
7.2.80.0230.00016.89
7.2.70.0160.00616.81
7.2.60.0090.00716.71
7.2.50.0180.00616.74
7.2.40.0070.01416.92
7.2.30.0040.01116.89
7.2.20.0040.00716.77
7.2.10.0050.00516.69
7.2.00.0070.00716.62
7.1.330.0060.00615.66
7.1.320.0030.00915.73
7.1.310.0070.00715.56
7.1.300.0060.00915.27
7.1.290.0030.00615.63
7.1.280.0060.00915.55
7.1.270.0030.00615.60
7.1.260.0060.00315.36
7.1.250.0080.00415.75
7.1.240.0100.00315.65
7.1.230.0030.01015.56
7.1.220.0040.01115.32
7.1.210.0170.00715.26
7.1.200.0070.00915.56
7.1.190.0000.01715.45
7.1.180.0060.01015.63
7.1.170.0090.00415.56
7.1.160.0070.00315.66
7.1.150.0000.01315.64
7.1.140.0120.00615.22
7.1.130.0090.00015.58
7.1.120.0060.01015.49
7.1.110.0040.00415.68
7.1.100.0050.01016.86
7.1.90.0090.00615.52
7.1.80.0040.00815.33
7.1.70.0060.00416.24
7.1.60.0070.01317.75
7.1.50.0050.00516.24
7.1.40.0040.00815.68
7.1.30.0040.00715.56
7.1.20.0100.00315.66
7.1.10.0180.00315.48
7.1.00.0050.04318.98
7.0.330.0060.00615.35
7.0.320.0150.00615.39
7.0.310.0000.01015.14
7.0.300.0100.00714.98
7.0.290.0040.00415.35
7.0.280.0030.01315.00
7.0.270.0110.00415.11
7.0.260.0000.00914.96
7.0.250.0080.00815.20
7.0.240.0000.01115.47
7.0.230.0030.01015.24
7.0.220.0040.00815.29
7.0.210.0110.00815.14
7.0.200.0050.00615.93
7.0.190.0040.01115.00
7.0.180.0090.00615.21
7.0.170.0070.00315.38
7.0.160.0000.00715.29
7.0.150.0030.00715.36
7.0.140.0020.04118.61
7.0.130.0060.00615.41
7.0.120.0070.00315.23
7.0.110.0040.00415.12
7.0.100.0070.04218.50
7.0.90.0050.03218.54
7.0.80.0020.03218.50
7.0.70.0110.02718.62
7.0.60.0090.03518.43
7.0.50.0080.03918.63
7.0.40.0040.02716.71
7.0.30.0050.02316.73
7.0.20.0160.03516.67
7.0.10.0060.02016.58
7.0.00.0030.03016.73
5.6.380.0110.00514.27
5.6.370.0000.01514.15
5.6.360.0090.00614.14
5.6.350.0000.00813.98
5.6.340.0040.01114.29
5.6.330.0080.00814.34
5.6.320.0060.00913.97
5.6.310.0080.00613.96
5.6.300.0040.00713.85
5.6.290.0080.00314.23
5.6.280.0060.04017.61
5.6.270.0050.00514.12
5.6.260.0060.00614.04
5.6.250.0070.04217.17
5.6.240.0050.04217.41
5.6.230.0020.04917.39
5.6.220.0030.02917.13
5.6.210.0060.02717.25
5.6.200.0100.03217.36
5.6.190.0050.03817.44
5.6.180.0100.02717.42
5.6.170.0020.02417.65
5.6.160.0030.03117.73
5.6.150.0050.02617.55
5.6.140.0100.02117.46
5.6.130.0080.02217.52
5.6.120.0050.02817.51
5.6.110.0030.02517.49
5.6.100.0050.03117.51
5.6.90.0030.04517.51
5.6.80.0030.03317.19
5.6.70.0010.02517.24
5.6.60.0020.02617.13
5.6.50.0040.02317.06
5.6.40.0050.02317.18
5.6.30.0040.02017.16
5.6.20.0020.02417.19
5.6.10.0020.02317.30
5.6.00.0050.02017.13
5.5.380.0030.02815.54
5.5.370.0090.03815.60
5.5.360.0040.03815.80
5.5.350.0000.05115.57
5.5.340.0030.04715.77
5.5.330.0020.03715.90
5.5.320.0080.04315.74
5.5.310.0050.03816.03
5.5.300.0030.03115.64
5.5.290.0030.02315.80
5.5.280.0080.02215.84
5.5.270.0030.02315.67
5.5.260.0050.04415.66
5.5.250.0060.02715.72
5.5.240.0100.03815.37
5.5.230.0040.03415.50
5.5.220.0030.03015.51
5.5.210.0060.02015.54
5.5.200.0020.02315.38
5.5.190.0080.03315.53
5.5.180.0000.02415.52
5.5.170.0000.00810.75
5.5.160.0040.02315.47
5.5.150.0060.01715.36
5.5.140.0030.03115.28
5.5.130.0060.01815.41
5.5.120.0060.02015.35
5.5.110.0080.01615.50
5.5.100.0020.02315.40
5.5.90.0030.02015.48
5.5.80.0050.02215.49
5.5.70.0040.04515.51
5.5.60.0100.03315.54
5.5.50.0030.04315.47
5.5.40.0140.02915.33
5.5.30.0020.04515.49
5.5.20.0130.03315.40
5.5.10.0060.04115.27
5.5.00.0060.03515.47
5.4.450.0040.02415.18
5.4.440.0050.02515.27
5.4.430.0050.03015.14
5.4.420.0050.02615.17
5.4.410.0080.03315.06
5.4.400.0050.01914.86
5.4.390.0080.02614.74
5.4.380.0020.02814.65
5.4.370.0040.02214.83
5.4.360.0050.02114.81
5.4.350.0060.03315.01
5.4.340.0030.02114.88
5.4.330.0090.00010.88
5.4.320.0040.02115.09
5.4.310.0030.02214.81
5.4.300.0060.02114.84
5.4.290.0030.02514.86
5.4.280.0060.01814.92
5.4.270.0000.02215.03
5.4.260.0080.01614.96
5.4.250.0040.02214.90
5.4.240.0030.02015.13
5.4.230.0090.02414.84
5.4.220.0040.02014.85
5.4.210.0070.03914.76
5.4.200.0060.03114.80
5.4.190.0030.04514.92
5.4.180.0050.04114.94
5.4.170.0030.02814.84
5.4.160.0080.02214.77
5.4.150.0050.04314.85
5.4.140.0070.03813.60
5.4.130.0090.03513.51
5.4.120.0080.03813.61
5.4.110.0030.03013.54
5.4.100.0050.03813.52
5.4.90.0030.03813.69
5.4.80.0050.03713.53
5.4.70.0070.02113.63
5.4.60.0100.03813.55
5.4.50.0030.04013.46
5.4.40.0000.03713.53
5.4.30.0080.03513.63
5.4.20.0030.02213.62
5.4.10.0030.04013.60
5.4.00.0070.03613.23
5.3.290.0050.02212.55
5.3.280.0070.04012.31
5.3.270.0050.03712.45
5.3.260.0060.03712.51
5.3.250.0000.04312.35
5.3.240.0020.04212.47
5.3.230.0000.04112.32
5.3.220.0030.04012.46
5.3.210.0030.02212.43
5.3.200.0030.04312.42
5.3.190.0040.04012.49
5.3.180.0030.04012.40
5.3.170.0030.03712.54
5.3.160.0070.03412.50
5.3.150.0050.03112.55
5.3.140.0050.03912.49
5.3.130.0050.04312.54
5.3.120.0050.03312.43
5.3.110.0010.04112.55
5.3.100.0030.03712.25
5.3.90.0080.03612.28
5.3.80.0050.03912.29
5.3.70.0080.03312.17
5.3.60.0060.03612.18
5.3.50.0070.03312.14
5.3.40.0070.03312.13
5.3.30.0020.04012.20
5.3.20.0020.03411.96
5.3.10.0050.03711.96
5.3.00.0010.04111.89
5.2.170.0050.02811.15
5.2.160.0020.03511.15
5.2.150.0090.02811.15
5.2.140.0050.03411.15
5.2.130.0040.03711.15
5.2.120.0090.02811.15
5.2.110.0010.03311.15
5.2.100.0030.03611.15
5.2.90.0060.03211.15
5.2.80.0050.03211.15
5.2.70.0030.03211.15
5.2.60.0050.02611.15
5.2.50.0030.01811.15
5.2.40.0090.02811.15
5.2.30.0030.03411.15
5.2.20.0060.02611.15
5.2.10.0050.03011.15
5.2.00.0020.03311.15
5.1.60.0040.02811.15
5.1.50.0030.02711.15
5.1.40.0020.03111.15
5.1.30.0080.02611.15
5.1.20.0050.02811.15
5.1.10.0020.01811.15
5.1.00.0040.03111.15
5.0.50.0020.02511.15
5.0.40.0020.02111.15
5.0.30.0020.03311.15
5.0.20.0060.01511.15
5.0.10.0020.02011.15
5.0.00.0020.03511.15
4.4.90.0010.01811.15
4.4.80.0020.02011.15
4.4.70.0030.01711.15
4.4.60.0050.01711.15
4.4.50.0050.01711.15
4.4.40.0020.03011.15
4.4.30.0080.01311.15
4.4.20.0020.02011.15
4.4.10.0050.01711.15
4.4.00.0020.01711.15
4.3.110.0050.01511.15
4.3.100.0000.01411.15
4.3.90.0020.01411.15
4.3.80.0060.02711.15
4.3.70.0030.01711.15
4.3.60.0000.02011.15
4.3.50.0030.01211.15
4.3.40.0040.02511.15
4.3.30.0060.01811.15
4.3.20.0030.01811.15
4.3.10.0010.01311.15
4.3.00.0020.01911.15

preferences:
40.22 ms | 401 KiB | 5 Q