3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { static function bar() { $foo = static function() { return get_called_class(); }; $foo->bindTo(null,'Bar'); print get_called_class(); return $foo(); } } class Bar extends Foo { } print Foo::bar(); print Bar::bar(); //assert(Bar::bar() === 'Bar'); //assert(Bar::baz() === 'Bar');

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.0120.00616.48
8.3.50.0130.00821.88
8.3.40.0140.00718.81
8.3.30.0110.00318.81
8.3.20.0000.00720.30
8.3.10.0040.00423.52
8.3.00.0070.00417.50
8.2.180.0150.00318.41
8.2.170.0090.00622.96
8.2.160.0070.00720.18
8.2.150.0080.00024.18
8.2.140.0000.00724.66
8.2.130.0120.00626.16
8.2.120.0100.00322.25
8.2.110.0030.00522.17
8.2.100.0040.00817.78
8.2.90.0040.00419.22
8.2.80.0030.00618.04
8.2.70.0040.00417.63
8.2.60.0060.00318.05
8.2.50.0040.00418.07
8.2.40.0000.00718.28
8.2.30.0000.00718.08
8.2.20.0050.00217.64
8.2.10.0070.00018.07
8.2.00.0070.00317.75
8.1.280.0120.00625.92
8.1.270.0070.00022.00
8.1.260.0040.00426.35
8.1.250.0050.00228.09
8.1.240.0080.00023.77
8.1.230.0060.00619.16
8.1.220.0050.00317.74
8.1.210.0080.00018.77
8.1.200.0030.00617.23
8.1.190.0000.00717.39
8.1.180.0040.00418.10
8.1.170.0120.00418.33
8.1.160.0050.00322.02
8.1.150.0050.00218.56
8.1.140.0000.00717.45
8.1.130.0070.00017.82
8.1.120.0070.00017.46
8.1.110.0040.00417.42
8.1.100.0030.00317.49
8.1.90.0040.00417.52
8.1.80.0000.00717.54
8.1.70.0030.00517.39
8.1.60.0000.01217.62
8.1.50.0030.00617.51
8.1.40.0040.00417.43
8.1.30.0050.00317.61
8.1.20.0000.00717.70
8.1.10.0030.00617.63
8.1.00.0030.00517.49
8.0.300.0040.00419.15
8.0.290.0000.00817.05
8.0.280.0030.00318.45
8.0.270.0000.00617.25
8.0.260.0030.00317.20
8.0.250.0030.00316.84
8.0.240.0040.00716.84
8.0.230.0070.00016.83
8.0.220.0030.00316.87
8.0.210.0060.00016.89
8.0.200.0040.00716.85
8.0.190.0070.00016.94
8.0.180.0080.00016.93
8.0.170.0000.00816.86
8.0.160.0060.00316.86
8.0.150.0030.00516.89
8.0.140.0000.00816.74
8.0.130.0000.00512.92
8.0.120.0000.00716.75
8.0.110.0040.00416.85
8.0.100.0040.00416.98
8.0.90.0000.00716.75
8.0.80.0000.01516.89
8.0.70.0070.00016.96
8.0.60.0080.00016.77
8.0.50.0050.00216.79
8.0.30.0110.01017.15
8.0.20.0130.00517.40
8.0.10.0000.00716.90
8.0.00.0120.00916.71
7.4.330.0000.00515.00
7.4.320.0000.00716.44
7.4.300.0030.00316.51
7.4.290.0020.00516.65
7.4.280.0040.00416.59
7.4.270.0050.00316.60
7.4.260.0020.00516.51
7.4.250.0000.00716.61
7.4.240.0020.00516.48
7.4.230.0040.00416.50
7.4.220.0070.01416.68
7.4.210.0070.00916.58
7.4.200.0000.00716.71
7.4.190.0040.00416.66
7.4.160.0110.00516.51
7.4.150.0030.01717.40
7.4.140.0090.00817.86
7.4.130.0100.00716.47
7.4.120.0070.01216.63
7.4.110.0030.01416.52
7.4.100.0070.01116.66
7.4.90.0060.01216.46
7.4.80.0070.01319.39
7.4.70.0140.00316.60
7.4.60.0090.00916.38
7.4.50.0000.00816.30
7.4.40.0070.01022.77
7.4.30.0060.00916.33
7.4.00.0110.00715.23
7.3.330.0020.00213.31
7.3.320.0050.00013.27
7.3.310.0000.00716.33
7.3.300.0030.00316.20
7.3.290.0040.01116.27
7.3.280.0100.00616.29
7.3.270.0120.00617.40
7.3.260.0090.00916.49
7.3.250.0160.00616.27
7.3.240.0000.01516.27
7.3.230.0080.01716.43
7.3.210.0090.01216.43
7.3.200.0090.00919.39
7.3.190.0070.01116.33
7.3.180.0080.00816.52
7.3.170.0060.00916.27
7.3.160.0090.00616.60
7.3.120.0070.01014.45
7.2.330.0090.01216.58
7.2.320.0170.00316.33
7.2.310.0090.00616.59
7.2.300.0040.01216.61
7.2.290.0120.00316.49
7.2.110.0110.01116.71
7.1.70.0060.00316.94
7.1.60.0070.01719.33
7.1.50.0150.00616.54
7.1.00.0000.08022.45
7.0.200.0210.00314.78
7.0.140.0000.07722.05
7.0.60.0030.08321.75
7.0.50.0230.06317.80
7.0.40.0000.09320.21
7.0.30.0270.03020.34
7.0.20.0230.08720.23
7.0.10.0100.07320.21
7.0.00.0070.04720.29
5.6.280.0100.06720.86
5.6.210.0100.08320.67
5.6.200.0100.05718.18
5.6.190.0070.04720.55
5.6.180.0200.03720.63
5.6.170.0330.03320.47
5.6.160.0100.06020.47
5.6.150.0100.03718.17
5.6.140.0000.04718.26
5.6.130.0070.06718.25
5.6.120.0030.05021.12
5.6.110.0170.07720.99
5.6.100.0170.07321.00
5.6.90.0100.08021.04
5.6.80.0070.07020.37
5.5.350.3900.04320.29
5.5.340.0130.07017.95
5.5.330.0000.04320.57
5.5.320.0200.07320.20
5.5.310.0230.05020.37
5.5.300.0000.04017.98
5.5.290.0130.08318.04
5.5.280.0030.04320.77
5.5.270.0070.08720.77
5.5.260.0230.07720.80
5.5.250.0030.08020.62
5.5.240.0370.05720.26
5.4.450.0130.06019.48
5.4.440.0200.05319.70
5.4.430.0270.04719.70
5.4.420.0170.05719.61
5.4.410.0230.04719.50
5.4.400.0230.04719.17
5.4.390.0270.04719.14
5.4.380.0300.07018.84
5.4.370.0370.04718.76
5.4.360.0330.05318.44
5.4.350.0300.06318.73
5.4.340.0500.03718.63
5.4.320.0020.04012.51
5.4.310.0080.03912.50
5.4.300.0110.03112.51
5.4.290.0060.04112.50
5.4.280.0060.05112.37
5.4.270.0150.05712.37
5.4.260.0190.06612.37
5.4.250.0130.05112.37
5.4.240.0080.05212.37
5.4.230.0080.05012.37
5.4.220.0120.06112.36
5.4.210.0080.04712.37
5.4.200.0120.05812.36
5.4.190.0090.05912.36
5.4.180.0130.05712.36
5.4.170.0200.08112.38
5.4.160.0120.05512.37
5.4.150.0130.05312.36
5.4.140.0060.06512.05
5.4.130.0190.06512.04
5.4.120.0100.04911.99
5.4.110.0060.05611.99
5.4.100.0280.07011.99
5.4.90.0260.08411.99
5.4.80.0170.07411.99
5.4.70.0170.08211.98
5.4.60.0070.07011.98
5.4.50.0080.04711.98
5.4.40.0110.05711.97
5.4.30.0100.04711.97
5.4.20.0100.04511.97
5.4.10.0060.04911.96
5.4.00.0090.05611.46
5.3.290.0070.03812.80
5.3.280.0110.04312.71
5.3.270.0120.03612.72
5.3.260.0070.04312.71
5.3.250.0110.03912.72
5.3.240.0080.03912.71
5.3.230.0060.04012.71
5.3.220.0100.03512.68
5.3.210.0090.04112.68
5.3.200.0080.03712.68
5.3.190.0080.04512.68
5.3.180.0130.05712.67
5.3.170.0080.04712.66
5.3.160.0080.05212.68
5.3.150.0060.04412.67
5.3.140.0080.03612.66
5.3.130.0070.04212.66
5.3.120.0090.04312.66
5.3.110.0060.04312.66
5.3.100.0070.04012.11
5.3.90.0060.03912.08
5.3.80.0090.04412.07
5.3.70.0080.03712.08
5.3.60.0080.04612.06
5.3.50.0050.04312.00
5.3.40.0080.03812.00
5.3.30.0040.03811.95
5.3.20.0110.03711.73
5.3.10.0050.03811.70
5.3.00.0060.05011.70
5.2.170.0110.0369.18
5.2.160.0110.0369.19
5.2.150.0110.0369.18
5.2.140.0120.0389.18
5.2.130.0110.0349.14
5.2.120.0170.0349.14
5.2.110.0160.0459.15
5.2.100.0060.0459.15
5.2.90.0140.0389.14
5.2.80.0120.0499.14
5.2.70.0110.0569.14
5.2.60.0070.0509.09
5.2.50.0070.0489.07
5.2.40.0090.0459.04
5.2.30.0090.0399.02
5.2.20.0100.0529.00
5.2.10.0170.0578.92
5.2.00.0100.0488.78
5.1.60.0120.0398.06
5.1.50.0110.0448.07
5.1.40.0030.0298.04
5.1.30.0060.0288.39
5.1.20.0090.0268.41
5.1.10.0050.0278.15
5.1.00.0080.0288.15
5.0.50.0060.0246.61
5.0.40.0060.0206.48
5.0.30.0000.0376.29
5.0.20.0040.0206.26
5.0.10.0080.0176.23
5.0.00.0040.0326.22
4.4.90.0040.0164.78
4.4.80.0070.0174.76
4.4.70.0020.0184.75
4.4.60.0040.0154.75
4.4.50.0050.0144.77
4.4.40.0030.0264.70
4.4.30.0050.0144.76
4.4.20.0060.0144.84
4.4.10.0030.0174.84
4.4.00.0030.0274.76
4.3.110.0040.0214.67
4.3.100.0070.0274.66
4.3.90.0030.0214.63
4.3.80.0030.0274.58
4.3.70.0030.0214.63
4.3.60.0070.0234.62
4.3.50.0060.0204.63
4.3.40.0040.0314.54
4.3.30.0050.0203.28
4.3.20.0030.0233.26
4.3.10.0040.0203.23
4.3.00.0030.0236.72

preferences:
59.85 ms | 401 KiB | 5 Q