3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { function getCalledClassFix(){ return get_called_class(); } function bar() { // print get_called_class(); $foo = function() { return self::getCalledClassFix(); }; return $foo(); } } class Bar extends Foo { function Zbar() { $foo = static function() { return get_called_class(); }; return $foo(); } } 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.0090.00916.50
8.3.50.0140.00522.00
8.3.40.0030.01918.60
8.3.30.0060.00918.91
8.3.20.0070.00020.04
8.3.10.0040.00423.48
8.3.00.0070.00717.38
8.2.180.0150.00418.43
8.2.170.0110.00322.96
8.2.160.0070.00720.43
8.2.150.0000.00824.18
8.2.140.0090.00624.66
8.2.130.0090.00626.16
8.2.120.0100.00322.25
8.2.110.0090.00021.03
8.2.100.0080.00417.78
8.2.90.0000.00719.14
8.2.80.0040.00417.97
8.2.70.0030.00617.13
8.2.60.0000.00817.80
8.2.50.0030.00618.07
8.2.40.0070.00018.16
8.2.30.0000.00718.04
8.2.20.0040.00417.61
8.2.10.0000.00717.91
8.2.00.0070.00317.66
8.1.280.0100.00725.92
8.1.270.0030.00623.97
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0040.00823.55
8.1.230.0140.00020.97
8.1.220.0080.00017.74
8.1.210.0040.00718.77
8.1.200.0060.00317.35
8.1.190.0040.00417.40
8.1.180.0030.00518.10
8.1.170.0040.00818.38
8.1.160.0000.00721.86
8.1.150.0070.00018.61
8.1.140.0030.00517.19
8.1.130.0040.00417.80
8.1.120.0040.00417.22
8.1.110.0050.00217.28
8.1.100.0050.00217.35
8.1.90.0040.00417.24
8.1.80.0030.00317.38
8.1.70.0040.00417.33
8.1.60.0040.00817.51
8.1.50.0050.00317.45
8.1.40.0050.00317.41
8.1.30.0000.00817.50
8.1.20.0030.00617.42
8.1.10.0040.00417.33
8.1.00.0050.00217.29
8.0.300.0040.00419.15
8.0.290.0030.00317.05
8.0.280.0070.00018.28
8.0.270.0000.00717.18
8.0.260.0030.00317.10
8.0.250.0060.00016.86
8.0.240.0110.00016.83
8.0.230.0030.00316.94
8.0.220.0070.00016.88
8.0.210.0030.00316.90
8.0.200.0000.01016.83
8.0.190.0050.00216.91
8.0.180.0040.00416.80
8.0.170.0050.00316.80
8.0.160.0000.00816.84
8.0.150.0000.00716.91
8.0.140.0040.00416.88
8.0.130.0080.00013.36
8.0.120.0050.00316.86
8.0.110.0040.00416.71
8.0.100.0040.00416.80
8.0.90.0000.00716.93
8.0.80.0090.00616.76
8.0.70.0000.00716.79
8.0.60.0070.00016.74
8.0.50.0000.00716.92
8.0.30.0100.00816.82
8.0.20.0090.00917.40
8.0.10.0020.00516.93
8.0.00.0070.01416.62
7.4.330.0000.00515.00
7.4.320.0060.00016.57
7.4.300.0000.00716.57
7.4.290.0030.00316.57
7.4.280.0000.00716.54
7.4.270.0030.00616.48
7.4.260.0000.00616.40
7.4.250.0040.00416.50
7.4.240.0050.00216.54
7.4.230.0040.00416.57
7.4.220.0160.01016.54
7.4.210.0090.00816.55
7.4.200.0000.00716.61
7.4.190.0000.00816.72
7.4.160.0090.00616.30
7.4.150.0030.01317.40
7.4.140.0070.01217.86
7.4.130.0080.01116.51
7.4.120.0050.01116.69
7.4.110.0090.01216.43
7.4.100.0160.00616.63
7.4.90.0120.00916.56
7.4.80.0100.01119.39
7.4.70.0050.01316.64
7.4.60.0160.00616.58
7.4.50.0000.00716.37
7.4.40.0040.01522.77
7.4.30.0070.01416.43
7.4.00.0030.01015.13
7.3.330.0000.00613.34
7.3.320.0060.00013.20
7.3.310.0070.00016.21
7.3.300.0000.00716.22
7.3.290.0000.01416.43
7.3.280.0070.00816.31
7.3.270.0060.01317.40
7.3.260.0100.00716.54
7.3.250.0070.01216.39
7.3.240.0100.00716.19
7.3.230.0080.00816.59
7.3.210.0140.00416.57
7.3.200.0150.00619.39
7.3.190.0080.00816.39
7.3.180.0070.01416.17
7.3.170.0070.01016.59
7.3.160.0060.01016.44
7.3.120.0070.01015.04
7.2.330.0140.00716.74
7.2.320.0100.01016.38
7.2.310.0090.01216.33
7.2.300.0130.00916.35
7.2.290.0130.00816.73
7.2.110.0220.00616.59
7.2.100.0130.00916.34
7.2.90.0510.00716.64
7.2.80.0180.01116.47
7.2.70.0210.01516.92
7.2.60.0210.01016.67
7.2.50.0360.01116.89
7.2.40.0230.00916.92
7.2.30.0470.00316.75
7.2.20.0150.01116.52
7.2.10.0420.00616.96
7.2.00.0160.01316.63
7.1.230.0380.00615.64
7.1.220.0390.00415.76
7.1.210.0090.01715.82
7.1.200.0120.00615.55
7.1.190.0100.01615.71
7.1.180.0210.01015.76
7.1.170.0400.00315.70
7.1.160.0140.01115.40
7.1.150.0140.01115.75
7.1.140.0130.01315.51
7.1.130.0140.01415.76
7.1.120.0320.00815.74
7.1.110.0140.01015.58
7.1.100.0090.00916.84
7.1.90.0180.00515.62
7.1.80.0330.00715.74
7.1.70.0310.00916.22
7.1.60.0120.01116.42
7.1.50.0330.00916.37
7.1.40.0210.00216.14
7.1.30.1210.00216.17
7.1.20.0190.00716.14
7.1.10.0120.00816.01
7.1.00.0120.00916.09
7.0.310.0550.00715.37
7.0.300.0090.01815.25
7.0.290.0260.00915.27
7.0.280.0080.01615.28
7.0.270.0350.00715.43
7.0.260.0210.00215.52
7.0.250.0320.00314.95
7.0.240.0160.00315.10
7.0.230.0260.01115.27
7.0.220.0170.00715.20
7.0.210.0170.01015.13
7.0.200.0110.00616.01
7.0.190.0060.01416.01
7.0.180.0050.01215.71
7.0.170.0140.00915.77
7.0.160.0110.00615.72
7.0.150.0110.01115.80
7.0.140.0080.00915.85
7.0.130.0230.00715.97
7.0.120.0170.00715.88
7.0.110.0160.00415.86
7.0.100.0220.00715.68
7.0.90.0160.00715.76
7.0.80.0190.00315.66
7.0.70.0170.00715.86
7.0.60.0260.00415.69
7.0.50.0130.00415.93
7.0.40.0150.00214.58
7.0.30.0090.00814.38
7.0.20.0140.00314.46
7.0.10.0080.00914.53
7.0.00.0100.00614.59
5.6.380.0130.00614.26
5.6.370.0250.00014.57
5.6.360.0180.00614.46
5.6.350.0080.01314.33
5.6.340.0180.00914.58
5.6.330.0150.01114.25
5.6.320.0220.00513.99
5.6.310.0130.01614.18
5.6.300.0090.02617.36
5.6.290.0080.02617.73
5.6.280.0200.02217.47
5.6.270.0140.02617.64
5.6.260.0190.02817.54
5.6.250.0130.02517.53
5.6.240.0260.02317.68
5.6.230.0200.02717.71
5.6.220.0120.02417.41
5.6.210.0190.03417.59
5.6.200.0150.02617.64
5.6.190.0110.02617.63
5.6.180.0160.02117.51
5.6.170.0130.02317.71
5.6.160.0130.02717.72
5.6.150.0060.02817.55
5.6.140.0080.03017.58
5.6.130.0070.02717.52
5.6.120.0110.02817.46
5.6.110.0170.02117.54
5.6.100.0090.03217.41
5.6.90.0060.03117.72
5.6.80.0120.02217.24
5.6.70.0070.02617.11
5.6.60.0110.02417.22
5.6.50.0100.02517.26
5.6.40.0090.02517.16
5.6.30.0130.01917.22
5.6.20.0100.04317.19
5.6.10.0080.03017.23
5.6.00.0130.03717.19
5.5.380.0110.02714.35
5.5.370.0020.02814.21
5.5.360.0090.02214.27
5.5.350.0110.02314.32
5.5.340.0100.02214.63
5.5.330.0150.02214.54
5.5.320.0090.02214.39
5.5.310.0120.02114.44
5.5.300.0090.02314.50
5.5.290.0110.01914.62
5.5.280.0090.02414.46
5.5.270.0040.02714.58
5.5.260.0070.02514.56
5.5.250.0040.02614.20
5.5.240.0060.02314.19
5.5.230.0060.02514.19
5.5.220.0080.02914.31
5.5.210.0060.02114.22
5.5.200.0070.02214.16
5.5.190.0020.04613.96
5.5.180.0090.02814.06
5.5.170.0140.00414.07
5.5.160.0080.02214.18
5.5.150.0080.02513.99
5.5.140.0050.02514.29
5.5.130.0090.02114.18
5.5.120.0040.02514.10
5.5.110.0060.02213.96
5.5.100.0080.02014.00
5.5.90.0090.02014.11
5.5.80.0070.02114.12
5.5.70.0070.02014.17
5.5.60.0050.02414.14
5.5.50.0060.02414.21
5.5.40.0050.03614.31
5.5.30.0090.01914.23
5.5.20.0060.02314.16
5.5.10.0060.02114.24
5.5.00.0030.03114.29
5.4.450.0110.03215.07
5.4.440.0090.02615.30
5.4.430.0090.02215.06
5.4.420.0090.02115.26
5.4.410.0090.02215.13
5.4.400.0050.02314.93
5.4.390.0050.03015.12
5.4.380.0070.02114.93
5.4.370.0030.02714.90
5.4.360.0060.02414.95
5.4.350.0070.03815.02
5.4.340.0100.02114.98
5.4.330.0120.00210.75
5.4.320.0060.02514.90
5.4.310.0060.02114.99
5.4.300.0080.02314.80
5.4.290.0100.02114.93
5.4.280.0090.02214.95
5.4.270.0090.01915.11
5.4.260.0070.02315.14
5.4.250.0090.02014.85
5.4.240.0050.02414.78
5.4.230.0070.02214.94
5.4.220.0040.02414.84
5.4.210.0070.02115.02
5.4.200.0070.02515.05
5.4.190.0080.02114.97
5.4.180.0070.02215.05
5.4.170.0030.03914.88
5.4.160.0040.02214.78
5.4.150.0040.02614.96
5.4.140.0050.02513.63
5.4.130.0040.02313.74
5.4.120.0060.02113.73
5.4.110.0090.01913.87
5.4.100.0110.01713.81
5.4.90.0050.02313.87
5.4.80.0090.02013.94
5.4.70.0070.02613.69
5.4.60.0030.02513.68
5.4.50.0050.02213.86
5.4.40.0090.01813.75
5.4.30.0080.02013.89
5.4.20.0030.03713.69
5.4.10.0090.01813.81
5.4.00.0040.02113.52
5.3.290.0080.02313.02
5.3.280.0090.02013.02
5.3.270.0110.02613.02
5.3.260.0080.02313.02
5.3.250.0050.02413.02
5.3.240.0020.02513.02
5.3.230.0040.02613.02
5.3.220.0030.02513.02
5.3.210.0100.02013.02
5.3.200.0070.02113.02
5.3.190.0010.02613.02
5.3.180.0030.02513.07
5.3.170.0030.02613.08
5.3.160.0050.02213.10
5.3.150.0060.02313.06
5.3.140.0110.01813.02
5.3.130.0050.02013.02
5.3.120.0050.02513.02
5.3.110.0190.01513.02
5.3.100.0070.02913.02
5.3.90.0060.02013.04
5.3.80.0070.02613.02
5.3.70.0110.01713.02
5.3.60.0090.02413.02
5.3.50.0040.02313.02
5.3.40.0070.02113.02
5.3.30.0070.02713.02
5.3.20.0030.02213.02
5.3.10.0080.01713.02
5.3.00.0050.02313.02
5.2.170.0070.01713.02
5.2.160.0060.01713.02
5.2.150.0050.01813.02
5.2.140.0050.01813.02
5.2.130.0020.01913.02
5.2.120.0080.01313.02
5.2.110.0060.01513.02
5.2.100.0080.01813.02
5.2.90.0060.03613.02
5.2.80.0060.01713.02
5.2.70.0030.02013.02
5.2.60.0050.01613.02
5.2.50.0030.01813.02
5.2.40.0060.01513.02
5.2.30.0050.01713.02
5.2.20.0070.01513.02
5.2.10.0040.01813.02
5.2.00.0020.02013.02
5.1.60.0040.01613.02
5.1.50.0050.01313.02
5.1.40.0040.01413.02
5.1.30.0040.01913.02
5.1.20.0040.01713.02
5.1.10.0050.01413.02
5.1.00.0050.01413.02
5.0.50.0050.01213.02
5.0.40.0070.01013.02
5.0.30.0060.01613.02
5.0.20.0030.01513.02
5.0.10.0070.00813.02
5.0.00.0020.02013.02
4.4.90.0040.01013.02
4.4.80.0040.00913.02
4.4.70.0010.01013.02
4.4.60.0020.01113.02
4.4.50.0020.01413.02
4.4.40.0050.01113.02
4.4.30.0060.00913.02
4.4.20.0040.00913.02
4.4.10.0030.01013.02
4.4.00.0030.01513.02
4.3.110.0040.01313.02
4.3.100.0060.00613.02
4.3.90.0020.01013.02
4.3.80.0040.01313.02
4.3.70.0030.00913.02
4.3.60.0040.00913.02
4.3.50.0020.01013.02
4.3.40.0040.01213.02
4.3.30.0070.00713.02
4.3.20.0010.01213.02
4.3.10.0000.01213.02
4.3.00.0020.00913.02

preferences:
46.76 ms | 401 KiB | 5 Q