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'); B::foo();call_user_func($cb);

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.01116.88
8.3.50.0080.01122.82
8.3.40.0090.00618.55
8.3.30.0110.00419.04
8.3.20.0050.00220.39
8.3.10.0040.00421.78
8.3.00.0090.00017.63
8.2.180.0130.01016.38
8.2.170.0140.00322.96
8.2.160.0070.00720.57
8.2.150.0050.00224.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00421.09
8.2.110.0060.00321.98
8.2.100.0080.00419.63
8.2.90.0080.00019.23
8.2.80.0040.00417.97
8.2.70.0080.00417.38
8.2.60.0000.00817.80
8.2.50.0040.00418.07
8.2.40.0030.00618.03
8.2.30.0000.00717.93
8.2.20.0050.00317.66
8.2.10.0000.00717.89
8.2.00.0000.00817.63
8.1.280.0070.00725.92
8.1.270.0080.00023.88
8.1.260.0040.00426.35
8.1.250.0050.00228.09
8.1.240.0090.00023.96
8.1.230.0040.00718.86
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0040.00417.23
8.1.190.0040.00417.10
8.1.180.0000.00818.10
8.1.170.0000.00818.59
8.1.160.0000.00821.94
8.1.150.0000.00718.72
8.1.140.0000.00717.30
8.1.130.0030.00317.86
8.1.120.0040.00417.41
8.1.110.0060.00317.36
8.1.100.0040.00417.26
8.1.90.0080.00017.28
8.1.80.0070.00017.40
8.1.70.0070.00017.36
8.1.60.0080.00017.44
8.1.50.0030.00517.53
8.1.40.0030.00517.46
8.1.30.0060.00317.64
8.1.20.0040.00417.70
8.1.10.0050.00217.47
8.1.00.0020.00517.43
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0040.00418.43
8.0.270.0030.00317.18
8.0.260.0000.00717.29
8.0.250.0000.00816.79
8.0.240.0070.00016.88
8.0.230.0030.00316.87
8.0.220.0030.00316.71
8.0.210.0070.00016.83
8.0.200.0000.00716.86
8.0.190.0030.00516.90
8.0.180.0000.00716.75
8.0.170.0000.00816.86
8.0.160.0030.00416.74
8.0.150.0030.00316.77
8.0.140.0040.00416.80
8.0.130.0000.00713.29
8.0.120.0070.00016.79
8.0.110.0050.00316.73
8.0.100.0000.00716.93
8.0.90.0080.00016.65
8.0.80.0060.00916.80
8.0.70.0040.00416.88
8.0.60.0020.00516.67
8.0.50.0000.00816.75
8.0.30.0120.00617.07
8.0.20.0090.00917.40
8.0.10.0040.00416.88
8.0.00.0080.01216.71
7.4.330.0000.00515.08
7.4.320.0000.00616.45
7.4.300.0060.00016.44
7.4.290.0000.00716.62
7.4.280.0070.00016.49
7.4.270.0030.00316.49
7.4.260.0040.00416.58
7.4.250.0070.00016.51
7.4.240.0030.00316.49
7.4.230.0070.00016.38
7.4.220.0170.00716.66
7.4.210.0070.00716.70
7.4.200.0000.00716.69
7.4.160.0120.00616.72
7.4.150.0120.00817.40
7.4.140.0050.01117.86
7.4.130.0070.01016.67
7.4.120.0050.01216.49
7.4.110.0040.01316.37
7.4.100.0110.00716.57
7.4.90.0130.00316.69
7.4.80.0070.01619.39
7.4.70.0110.01416.41
7.4.60.0060.01016.47
7.4.50.0030.00316.56
7.4.40.0060.00916.59
7.4.30.0110.00516.32
7.4.00.0100.00614.91
7.3.330.0020.00413.02
7.3.320.0050.00013.00
7.3.310.0000.00816.13
7.3.300.0030.00316.28
7.3.290.0060.00916.25
7.3.280.0050.01116.24
7.3.270.0040.01217.40
7.3.260.0080.00816.41
7.3.240.0130.00316.30
7.3.230.0140.00716.43
7.3.210.0060.00916.46
7.3.200.0060.00919.39
7.3.190.0090.01216.13
7.3.180.0120.00316.43
7.3.170.0350.03316.52
7.3.160.0090.00916.41
7.2.330.0120.00416.58
7.2.320.0070.01116.38
7.2.310.0090.01316.28
7.2.300.0070.01016.26
7.2.290.0110.00616.67
7.2.110.0390.00616.51
7.2.80.0070.00716.51
7.2.60.0000.01016.92
7.2.50.0040.01116.72
7.2.00.0070.00718.89
7.1.200.0150.00315.13
7.1.100.0080.00317.79
7.1.70.0040.00717.05
7.1.60.0030.02019.40
7.1.50.0160.01934.68
7.1.00.0030.07722.45
7.0.200.0000.00816.67
7.0.140.0130.06322.21
7.0.60.0100.06019.91
7.0.50.0070.05017.94
7.0.40.0100.06720.15
7.0.30.0230.05720.26
7.0.20.0370.07020.12
7.0.10.0030.07720.15
7.0.00.0000.05020.13
5.6.210.0070.08320.49
5.6.200.0130.07318.20
5.6.190.0030.04320.63
5.6.180.0200.05320.61
5.6.170.0330.02720.62
5.6.160.0100.08020.54
5.6.150.0030.08318.16
5.6.140.0030.08718.18
5.6.130.0030.09018.13
5.6.120.0100.08320.99
5.6.110.0100.07320.89
5.6.100.0170.07721.02
5.6.90.0100.08020.96
5.6.80.0070.06720.41
5.5.350.3130.03320.41
5.5.340.0070.04017.99
5.5.330.0130.04720.47
5.5.320.0330.06320.32
5.5.310.0370.07320.20
5.5.300.0070.08317.99
5.5.290.0070.08017.93
5.5.280.0070.08720.68
5.5.270.0030.07720.94
5.5.260.0300.06720.89
5.5.250.0170.07320.58
5.5.240.0270.07320.23
5.4.450.0270.04019.49
5.4.440.0400.03319.32
5.4.430.0430.04019.27
5.4.420.0430.03719.54
5.4.410.0300.03719.31
5.4.400.0130.04318.98
5.4.390.0630.03719.27
5.4.380.0370.05018.61
5.4.370.0400.05018.80
5.4.360.0370.05318.53
5.4.350.0600.06318.80
5.4.340.0270.05018.81
5.4.320.0050.03612.50
5.4.310.0110.04212.50
5.4.300.0090.04312.50
5.4.290.0100.04512.50
5.4.280.0050.04112.39
5.4.270.0070.04012.39
5.4.260.0100.03712.39
5.4.250.0060.03712.39
5.4.240.0060.03712.40
5.4.230.0040.04112.38
5.4.220.0070.04712.39
5.4.210.0060.03812.39
5.4.200.0080.05112.39
5.4.190.0060.05212.39
5.4.180.0040.05412.38
5.4.170.0090.03412.40
5.4.160.0070.05012.39
5.4.150.0060.04012.38
5.4.140.0040.04312.07
5.4.130.0070.03512.05
5.4.120.0030.03712.02
5.4.110.0070.03312.02
5.4.100.0030.03812.02
5.4.90.0040.04112.01
5.4.80.0130.04212.02
5.4.70.0090.03812.00
5.4.60.0130.06812.01
5.4.50.0090.06112.01
5.4.40.0090.03412.00
5.4.30.0060.03912.00
5.4.20.0080.03812.00
5.4.10.0090.04711.99
5.4.00.0050.03911.48
5.3.290.0050.04012.80
5.3.280.0040.05312.71
5.3.270.0080.05212.72
5.3.260.0090.04312.72
5.3.250.0080.03712.72
5.3.240.0100.05012.72
5.3.230.0060.05212.71
5.3.220.0040.05012.68
5.3.210.0080.03812.68
5.3.200.0050.04912.68
5.3.190.0080.05112.68
5.3.180.0080.03712.68
5.3.170.0040.03912.67
5.3.160.0050.03812.67
5.3.150.0040.04112.67
5.3.140.0080.05012.66
5.3.130.0060.05412.65
5.3.120.0060.04112.66
5.3.110.0040.05612.65
5.3.100.0070.04612.12
5.3.90.0070.05112.10
5.3.80.0140.04512.09
5.3.70.0080.03912.09
5.3.60.0050.04212.07
5.3.50.0080.03812.03
5.3.40.0100.03612.03
5.3.30.0050.05111.98
5.3.20.0100.03411.76
5.3.10.0060.04011.73
5.3.00.0080.03511.72
5.2.170.0040.0309.23
5.2.160.0050.0299.22
5.2.150.0050.0319.22
5.2.140.0080.0349.22
5.2.130.0060.0609.18
5.2.120.0080.0589.18
5.2.110.0100.0249.18
5.2.100.0040.0359.18
5.2.90.0100.0459.18
5.2.80.0080.0489.18
5.2.70.0120.0879.18
5.2.60.0040.0429.13
5.2.50.0080.0409.09
5.2.40.0040.0319.07
5.2.30.0060.0419.05
5.2.20.0030.0419.04
5.2.10.0060.0378.94
5.2.00.0050.0408.80
5.1.60.0050.0338.09
5.1.50.0090.0298.09
5.1.40.0010.0388.07
5.1.30.0030.0388.42
5.1.20.0050.0298.44
5.1.10.0050.0248.16
5.1.00.0060.0248.17
5.0.50.0050.0196.64
5.0.40.0020.0206.50
5.0.30.0020.0326.31
5.0.20.0010.0226.28
5.0.10.0020.0226.26
5.0.00.0030.0326.25
4.4.90.0060.0124.78
4.4.80.0030.0154.75
4.4.70.0040.0144.75
4.4.60.0040.0204.75
4.4.50.0010.0184.77
4.4.40.0020.0274.71
4.4.30.0030.0164.76
4.4.20.0030.0154.84
4.4.10.0020.0164.85
4.4.00.0020.0264.76
4.3.110.0000.0184.67
4.3.100.0040.0144.67
4.3.90.0010.0184.63
4.3.80.0020.0244.59
4.3.70.0030.0144.63
4.3.60.0040.0144.63
4.3.50.0040.0144.63
4.3.40.0050.0254.54
4.3.30.0020.0173.30
4.3.20.0030.0213.28
4.3.10.0010.0163.23
4.3.00.0000.01715.91

preferences:
44.09 ms | 401 KiB | 5 Q