3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { static function foo() { echo get_called_class(); } } class B extends A { static function foo() { echo "B\n"; } } $cb = array('B', 'parent::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.0140.00016.74
8.3.50.0140.00422.88
8.3.40.0090.00918.83
8.3.30.0060.01118.95
8.3.20.0070.00020.33
8.3.10.0030.00621.76
8.3.00.0080.00017.50
8.2.180.0070.01016.75
8.2.170.0070.01122.96
8.2.160.0070.00720.13
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0050.00326.16
8.2.120.0040.00420.91
8.2.110.0060.00320.39
8.2.100.0000.01117.65
8.2.90.0040.00419.23
8.2.80.0040.00417.97
8.2.70.0050.00317.63
8.2.60.0030.00518.04
8.2.50.0030.00718.07
8.2.40.0070.00018.16
8.2.30.0040.00418.05
8.2.20.0050.00317.55
8.2.10.0040.00418.10
8.2.00.0000.00817.49
8.1.280.0070.01025.92
8.1.270.0040.00423.84
8.1.260.0000.00726.35
8.1.250.0000.00728.09
8.1.240.0090.00023.91
8.1.230.0110.00019.15
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0060.00317.21
8.1.190.0040.00417.09
8.1.180.0000.00718.10
8.1.170.0000.00718.51
8.1.160.0040.00421.95
8.1.150.0040.00418.80
8.1.140.0050.00317.25
8.1.130.0030.00317.77
8.1.120.0030.00317.43
8.1.110.0040.00417.37
8.1.100.0000.00717.44
8.1.90.0040.00417.38
8.1.80.0040.00417.29
8.1.70.0000.00717.35
8.1.60.0000.00817.57
8.1.50.0040.00417.54
8.1.40.0000.00817.52
8.1.30.0000.00817.59
8.1.20.0030.00617.68
8.1.10.0040.00417.44
8.1.00.0040.00417.54
8.0.300.0040.00418.77
8.0.290.0070.00016.63
8.0.280.0000.00618.38
8.0.270.0040.00417.25
8.0.260.0000.00617.21
8.0.250.0000.00816.84
8.0.240.0000.00616.84
8.0.230.0000.00716.75
8.0.220.0040.00416.75
8.0.210.0000.00716.75
8.0.200.0060.00016.90
8.0.190.0040.00416.89
8.0.180.0030.00316.90
8.0.170.0000.00716.88
8.0.160.0030.00316.82
8.0.150.0000.00716.79
8.0.140.0000.00716.73
8.0.130.0000.00513.30
8.0.120.0040.00416.81
8.0.110.0070.00016.71
8.0.100.0040.00416.64
8.0.90.0020.00516.87
8.0.80.0080.00816.93
8.0.70.0000.00716.93
8.0.60.0040.00416.78
8.0.50.0000.00716.77
8.0.30.0120.00816.91
8.0.20.0090.01517.40
8.0.10.0000.00716.83
8.0.00.0100.00816.64
7.4.330.0050.00015.03
7.4.320.0060.00016.55
7.4.300.0000.00616.63
7.4.290.0030.00316.59
7.4.280.0040.00716.39
7.4.270.0030.00316.58
7.4.260.0040.00516.54
7.4.250.0040.00416.56
7.4.240.0060.00116.47
7.4.230.0000.00716.39
7.4.220.0120.00916.50
7.4.210.0060.00916.46
7.4.200.0030.00316.48
7.4.160.0060.00916.64
7.4.150.0080.01517.40
7.4.140.0090.01217.86
7.4.130.0090.00916.47
7.4.120.0120.00616.36
7.4.110.0090.01216.62
7.4.100.0000.01616.65
7.4.90.0070.01516.45
7.4.80.0140.00319.39
7.4.70.0030.02316.56
7.4.60.0100.01016.36
7.4.50.0000.00916.20
7.4.40.0080.00816.37
7.4.30.0110.00616.61
7.4.00.0050.01114.91
7.3.330.0030.00413.20
7.3.320.0050.00013.27
7.3.310.0030.00316.05
7.3.300.0030.00316.16
7.3.290.0050.00916.24
7.3.280.0110.00716.24
7.3.270.0190.00317.40
7.3.260.0080.00816.45
7.3.240.0060.00916.38
7.3.230.0100.00716.39
7.3.210.0030.01316.43
7.3.200.0090.00719.39
7.3.190.0120.00816.12
7.3.180.0040.01116.18
7.3.170.0150.00316.27
7.3.160.0140.00316.48
7.3.120.0070.01114.65
7.3.110.0100.00714.68
7.3.100.0030.01414.91
7.3.90.0170.00314.52
7.3.80.0030.00914.75
7.3.70.0060.00614.76
7.3.60.0100.00314.65
7.3.50.0060.00914.49
7.3.40.0090.00314.52
7.3.30.0060.00914.76
7.3.20.0090.00616.53
7.3.10.0100.00516.51
7.3.00.0100.00716.50
7.2.330.0070.01016.27
7.2.320.0030.01416.68
7.2.310.0140.00716.34
7.2.300.0060.00916.35
7.2.290.0090.00616.73
7.2.250.0060.00914.60
7.2.240.0100.01014.66
7.2.230.0030.01614.97
7.2.220.0060.00315.11
7.2.210.0070.01014.82
7.2.200.0060.00614.87
7.2.190.0130.00314.92
7.2.180.0030.00615.06
7.2.170.0070.00714.94
7.2.130.0070.01316.78
7.2.120.0030.01016.59
7.2.110.0120.00316.81
7.2.100.0130.00616.60
7.2.90.0150.00516.75
7.2.80.0090.00616.71
7.2.70.0120.00416.74
7.2.60.0090.00816.77
7.2.50.0120.00816.67
7.2.40.0090.00716.71
7.2.30.0090.01016.59
7.2.20.0090.01016.78
7.2.10.0100.00616.77
7.2.00.0090.00617.63
7.1.330.0030.01015.43
7.1.320.0000.01515.55
7.1.310.0070.00315.42
7.1.300.0060.00915.39
7.1.290.0030.00915.85
7.1.280.0040.01115.68
7.1.270.0000.01615.72
7.1.260.0060.00615.49
7.1.250.0090.00715.54
7.1.200.0070.00715.42
7.1.100.0000.00817.83
7.1.70.0110.00717.07
7.1.60.0070.01319.40
7.1.50.0000.02117.00
7.1.00.0070.07322.34
7.0.200.0000.00816.76
7.0.140.0030.07022.08
7.0.60.0130.05320.07
7.0.50.0030.05717.88
7.0.40.0100.08720.26
7.0.30.0570.05320.08
7.0.20.0070.05020.17
7.0.10.0100.08020.33
7.0.00.0130.08020.09
5.6.280.0100.06720.92
5.6.210.0300.06020.61
5.6.200.0130.07318.29
5.6.190.0030.05320.61
5.6.180.0470.05720.49
5.6.170.0230.05720.57
5.6.160.0070.09020.50
5.6.150.0030.04018.28
5.6.140.0200.07318.17
5.6.130.0100.08018.25
5.6.120.0070.04021.01
5.6.110.0070.09021.02
5.6.100.0030.04721.14
5.6.90.0100.07321.12
5.6.80.0030.04020.52
5.5.350.0070.02720.46
5.5.340.0000.09017.98
5.5.330.0030.04320.43
5.5.320.0030.05020.26
5.5.310.0400.07020.51
5.5.300.0100.07017.95
5.5.290.0030.07017.95
5.5.280.0000.06020.90
5.5.270.0000.09320.77
5.5.260.0070.03720.79
5.5.250.0030.04020.80
5.5.240.3370.03320.04
5.4.450.0300.05019.47
5.4.440.0100.03319.52
5.4.430.0400.04319.40
5.4.420.0800.03719.16
5.4.410.0730.03319.18
5.4.400.0830.04719.23
5.4.390.1300.05319.00
5.4.380.0170.05718.61
5.4.370.0070.07018.63
5.4.360.0200.04718.64
5.4.350.0200.05318.56
5.4.340.0170.05018.67
5.4.320.0040.03612.50
5.4.310.0080.04512.50
5.4.300.0070.03612.50
5.4.290.0070.03612.50
5.4.280.0040.03712.40
5.4.270.0050.03612.40
5.4.260.0060.03812.40
5.4.250.0050.03912.40
5.4.240.0040.03812.40
5.4.230.0110.03412.39
5.4.220.0070.03712.39
5.4.210.0070.03512.39
5.4.200.0080.03612.39
5.4.190.0070.03512.38
5.4.180.0070.03612.39
5.4.170.0090.03412.39
5.4.160.0080.03412.39
5.4.150.0070.03512.39
5.4.140.0080.03512.07
5.4.130.0070.03512.06
5.4.120.0060.03412.02
5.4.110.0060.03512.01
5.4.100.0060.03412.01
5.4.90.0080.03412.02
5.4.80.0090.03312.02
5.4.70.0060.03412.01
5.4.60.0050.03512.02
5.4.50.0060.03512.01
5.4.40.0100.04612.00
5.4.30.0060.03912.00
5.4.20.0090.03312.00
5.4.10.0060.03712.00
5.4.00.0070.03611.48
5.3.290.0070.04012.80
5.3.280.0040.04012.70
5.3.270.0060.03912.72
5.3.260.0070.03812.72
5.3.250.0080.03612.72
5.3.240.0070.03712.72
5.3.230.0060.04012.71
5.3.220.0060.03912.68
5.3.210.0080.04812.68
5.3.200.0090.04112.68
5.3.190.0110.03312.68
5.3.180.0110.03112.67
5.3.170.0080.03512.67
5.3.160.0090.03512.68
5.3.150.0060.03612.67
5.3.140.0090.03412.66
5.3.130.0090.03712.66
5.3.120.0040.04512.66
5.3.110.0110.04012.66
5.3.100.0070.03712.12
5.3.90.0070.03912.10
5.3.80.0060.03712.10
5.3.70.0050.03612.10
5.3.60.0040.03812.07
5.3.50.0040.03712.03
5.3.40.0060.03612.04
5.3.30.0070.03511.98
5.3.20.0070.03511.76
5.3.10.0060.04011.73
5.3.00.0040.03811.72
5.2.170.0030.0329.22
5.2.160.0080.0269.22
5.2.150.0040.0319.23
5.2.140.0040.0309.22
5.2.130.0050.0289.18
5.2.120.0040.0289.18
5.2.110.0090.0319.19
5.2.100.0050.0289.18
5.2.90.0050.0309.18
5.2.80.0050.0309.18
5.2.70.0030.0329.18
5.2.60.0050.0309.13
5.2.50.0040.0389.10
5.2.40.0060.0279.07
5.2.30.0050.0299.05
5.2.20.0030.0309.04
5.2.10.0060.0278.95
5.2.00.0060.0278.80
5.1.60.0060.0278.09
5.1.50.0030.0368.09
5.1.40.0040.0308.07
5.1.30.0030.0278.41
5.1.20.0050.0278.44
5.1.10.0050.0278.17
5.1.00.0060.0288.17
5.0.50.0040.0206.64
5.0.40.0040.0186.50
5.0.30.0050.0396.31
5.0.20.0040.0266.28
5.0.10.0020.0246.26
5.0.00.0020.0326.25
4.4.90.0020.0164.78
4.4.80.0000.0184.75
4.4.70.0020.0164.75
4.4.60.0040.0154.75
4.4.50.0000.0194.77
4.4.40.0030.0264.71
4.4.30.0020.0184.75
4.4.20.0030.0164.84
4.4.10.0020.0164.85
4.4.00.0030.0264.76
4.3.110.0020.0164.67
4.3.100.0020.0164.67
4.3.90.0010.0174.63
4.3.80.0020.0254.59
4.3.70.0050.0134.63
4.3.60.0010.0164.63
4.3.50.0040.0144.63
4.3.40.0030.0254.54
4.3.30.0010.0173.30
4.3.20.0020.0223.28
4.3.10.0030.0153.23
4.3.00.0000.03715.91

preferences:
38.8 ms | 401 KiB | 5 Q