3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { static function foo() { echo "A\n"; } } class B extends A { static function foo() { echo "B\n"; } } $cb = array('B', 'parent::foo'); call_user_func($cb); B::foo();

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.01416.75
8.3.50.0140.00822.80
8.3.40.0140.00018.98
8.3.30.0070.00718.96
8.3.20.0080.00020.34
8.3.10.0080.00021.85
8.3.00.0050.00317.63
8.2.180.0100.00716.50
8.2.170.0090.00922.96
8.2.160.0070.00720.15
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0000.01021.10
8.2.110.0050.00522.25
8.2.100.0110.00017.84
8.2.90.0050.00319.05
8.2.80.0040.00417.97
8.2.70.0000.01117.50
8.2.60.0040.00417.93
8.2.50.0040.00418.07
8.2.40.0080.00018.22
8.2.30.0040.00417.95
8.2.20.0050.00317.61
8.2.10.0000.00818.06
8.2.00.0040.00417.67
8.1.280.0060.00825.92
8.1.270.0050.00323.79
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00322.37
8.1.230.0050.00520.85
8.1.220.0030.00618.77
8.1.210.0040.00418.84
8.1.200.0000.00817.23
8.1.190.0040.00417.10
8.1.180.0090.00018.10
8.1.170.0030.00618.54
8.1.160.0080.00021.88
8.1.150.0040.00418.80
8.1.140.0040.00417.28
8.1.130.0000.00717.69
8.1.120.0080.00017.28
8.1.110.0060.00317.36
8.1.100.0040.00417.38
8.1.90.0040.00317.32
8.1.80.0000.00717.42
8.1.70.0070.00017.34
8.1.60.0060.00317.61
8.1.50.0050.00317.49
8.1.40.0000.00917.49
8.1.30.0000.00817.58
8.1.20.0040.00417.66
8.1.10.0060.00317.52
8.1.00.0000.00817.50
8.0.300.0040.00419.91
8.0.290.0000.00716.63
8.0.280.0030.00318.42
8.0.270.0000.00717.30
8.0.260.0030.00317.30
8.0.250.0000.00816.94
8.0.240.0000.00716.88
8.0.230.0000.00716.84
8.0.220.0000.00716.70
8.0.210.0000.00716.69
8.0.200.0030.00316.87
8.0.190.0040.00416.78
8.0.180.0040.00416.82
8.0.170.0030.00516.75
8.0.160.0050.00216.81
8.0.150.0040.00416.85
8.0.140.0070.00016.79
8.0.130.0050.00013.25
8.0.120.0040.00416.79
8.0.110.0030.00516.65
8.0.100.0040.00416.85
8.0.90.0040.00416.78
8.0.80.0090.00616.86
8.0.70.0000.00816.63
8.0.60.0050.00216.81
8.0.50.0030.00316.88
8.0.30.0070.01217.10
8.0.20.0100.01317.40
8.0.10.0070.00017.05
8.0.00.0120.00816.68
7.4.330.0000.00515.00
7.4.320.0060.00016.50
7.4.300.0030.00316.48
7.4.290.0070.00016.42
7.4.280.0000.00716.59
7.4.270.0030.00316.61
7.4.260.0060.00316.50
7.4.250.0000.00716.48
7.4.240.0040.00316.50
7.4.230.0000.00716.59
7.4.220.0110.01216.48
7.4.210.0070.00716.47
7.4.200.0040.00416.47
7.4.160.0060.01216.48
7.4.150.0030.01617.40
7.4.140.0100.01017.86
7.4.130.0100.00816.56
7.4.120.0090.00816.44
7.4.110.0150.00316.62
7.4.100.0100.00716.47
7.4.90.0060.01016.26
7.4.80.0100.01319.39
7.4.70.0090.01216.51
7.4.60.0070.01016.61
7.4.50.0090.00016.44
7.4.40.0070.01116.43
7.4.30.0100.00616.43
7.4.00.0020.01414.63
7.3.330.0000.00613.29
7.3.320.0000.00513.13
7.3.310.0040.00416.09
7.3.300.0000.00716.08
7.3.290.0090.00916.23
7.3.280.0130.00816.15
7.3.270.0050.01317.40
7.3.260.0100.00716.18
7.3.250.0110.00916.37
7.3.240.0060.01216.20
7.3.230.0100.01016.39
7.3.210.0060.01016.19
7.3.200.0140.00319.39
7.3.190.0090.00616.46
7.3.180.0120.00916.13
7.3.170.0210.01216.30
7.3.160.0090.00916.31
7.3.120.0060.01214.79
7.3.110.0060.01014.55
7.3.100.0060.01014.79
7.3.90.0040.01114.63
7.3.80.0060.00614.45
7.3.70.0030.00914.66
7.3.60.0090.00614.78
7.3.50.0030.01314.65
7.3.40.0070.00414.53
7.3.30.0030.01314.72
7.3.20.0100.00316.33
7.3.10.0090.00316.41
7.3.00.0070.01016.25
7.2.330.0130.00316.59
7.2.320.0100.00716.31
7.2.310.0110.00916.61
7.2.300.0100.00716.75
7.2.290.0060.00916.66
7.2.250.0070.00715.12
7.2.240.0070.01414.64
7.2.230.0100.00314.79
7.2.220.0060.00914.87
7.2.210.0040.01114.91
7.2.200.0040.01114.72
7.2.190.0130.00314.73
7.2.180.0000.01114.61
7.2.170.0000.01215.02
7.2.00.0090.00318.96
7.1.330.0100.00315.52
7.1.320.0060.00615.53
7.1.310.0140.00015.34
7.1.300.0090.00315.52
7.1.290.0080.00815.56
7.1.280.0060.01015.48
7.1.270.0030.01015.46
7.1.260.0040.00415.57
7.1.200.0030.00715.61
7.1.100.0030.01017.91
7.1.70.0000.00717.00
7.1.60.0140.01119.40
7.1.50.0150.00934.76
7.1.00.0070.07322.44
7.0.200.0000.00716.72
7.0.140.0030.07022.15
7.0.60.0070.06719.92
7.0.50.0030.06317.88
7.0.40.0030.08020.10
7.0.30.0570.06720.11
7.0.20.0230.06020.21
7.0.10.0100.03720.24
7.0.00.0030.07020.32
5.6.280.0000.07721.12
5.6.210.0070.06320.73
5.6.200.0070.06318.21
5.6.190.0030.07320.55
5.6.180.0270.07320.58
5.6.170.0330.04720.55
5.6.160.0100.06720.45
5.6.150.0070.07018.18
5.6.140.0100.04318.27
5.6.130.0030.04018.18
5.6.120.0170.07721.03
5.6.110.0030.07321.01
5.6.100.0130.07720.98
5.6.90.0000.04321.00
5.6.80.0070.04720.42
5.5.350.4230.04320.41
5.5.340.0130.07317.98
5.5.330.0030.07720.27
5.5.320.0370.05320.34
5.5.310.0230.07020.51
5.5.300.0030.04017.94
5.5.290.0030.07017.97
5.5.280.0100.07720.85
5.5.270.0030.05020.86
5.5.260.0130.06720.77
5.5.250.0030.08320.46
5.5.240.0130.03020.26
5.4.450.0530.05019.53
5.4.440.0330.04019.64
5.4.430.0570.04019.62
5.4.420.0130.04019.32
5.4.410.0670.04319.33
5.4.400.0370.04019.20
5.4.390.0670.03319.23
5.4.380.0370.05018.84
5.4.370.0630.05018.63
5.4.360.0500.04318.84
5.4.350.0470.05318.78
5.4.340.0270.05718.65
5.4.320.0070.03712.50
5.4.310.0090.05012.49
5.4.300.0100.04612.50
5.4.290.0070.04712.50
5.4.280.0110.03612.39
5.4.270.0100.03912.40
5.4.260.0150.06312.39
5.4.250.0080.04712.39
5.4.240.0070.04812.39
5.4.230.0060.03912.39
5.4.220.0090.03612.39
5.4.210.0080.03912.39
5.4.200.0040.04512.39
5.4.190.0070.04012.38
5.4.180.0050.04112.38
5.4.170.0070.03512.39
5.4.160.0050.03812.39
5.4.150.0060.03812.38
5.4.140.0080.04012.07
5.4.130.0080.03912.06
5.4.120.0100.04812.01
5.4.110.0110.03312.01
5.4.100.0060.03812.02
5.4.90.0040.04112.01
5.4.80.0100.03412.02
5.4.70.0030.03712.01
5.4.60.0090.03812.01
5.4.50.0070.03612.01
5.4.40.0070.04012.00
5.4.30.0090.03312.00
5.4.20.0070.03511.99
5.4.10.0100.04711.99
5.4.00.0060.04311.48
5.3.290.0060.04112.80
5.3.280.0090.03712.71
5.3.270.0070.04212.73
5.3.260.0090.03712.72
5.3.250.0090.04112.72
5.3.240.0090.03612.72
5.3.230.0100.03712.70
5.3.220.0110.03412.68
5.3.210.0060.04012.68
5.3.200.0030.03912.68
5.3.190.0080.03712.67
5.3.180.0110.03712.68
5.3.170.0080.03812.67
5.3.160.0080.03612.67
5.3.150.0060.03812.67
5.3.140.0060.05012.66
5.3.130.0090.03912.66
5.3.120.0050.04012.65
5.3.110.0090.05212.66
5.3.100.0150.07412.12
5.3.90.0050.04012.10
5.3.80.0070.03812.10
5.3.70.0090.06112.09
5.3.60.0090.04012.08
5.3.50.0070.05412.03
5.3.40.0070.04212.03
5.3.30.0100.07211.98
5.3.20.0060.05811.77
5.3.10.0150.07211.73
5.3.00.0120.05211.73
5.2.170.0070.0349.22
5.2.160.0100.0389.22
5.2.150.0120.0399.22
5.2.140.0060.0329.22
5.2.130.0100.0319.18
5.2.120.0060.0459.18
5.2.110.0070.0369.18
5.2.100.0050.0339.18
5.2.90.0050.0319.18
5.2.80.0060.0309.18
5.2.70.0060.0449.18
5.2.60.0060.0369.13
5.2.50.0070.0409.10
5.2.40.0090.0379.08
5.2.30.0030.0449.05
5.2.20.0030.0419.04
5.2.10.0080.0318.95
5.2.00.0070.0418.80
5.1.60.0080.0518.09
5.1.50.0090.0408.09
5.1.40.0060.0358.07
5.1.30.0070.0348.41
5.1.20.0050.0408.43
5.1.10.0080.0258.17
5.1.00.0050.0258.17
5.0.50.0020.0236.64
5.0.40.0030.0216.50
5.0.30.0090.0496.32
5.0.20.0030.0206.28
5.0.10.0040.0236.26
5.0.00.0010.0346.25
4.4.90.0040.0144.78
4.4.80.0030.0154.75
4.4.70.0030.0154.75
4.4.60.0020.0174.76
4.4.50.0010.0174.77
4.4.40.0030.0294.71
4.4.30.0030.0164.76
4.4.20.0030.0174.84
4.4.10.0060.0224.85
4.4.00.0050.0254.76
4.3.110.0070.0284.67
4.3.100.0050.0154.67
4.3.90.0030.0184.63
4.3.80.0040.0284.58
4.3.70.0030.0154.63
4.3.60.0030.0174.63
4.3.50.0040.0224.63
4.3.40.0040.0274.54
4.3.30.0050.0163.30
4.3.20.0020.0233.28
4.3.10.0010.0223.23
4.3.00.0100.01315.91

preferences:
49.45 ms | 401 KiB | 5 Q