3v4l.org

run code in 300+ PHP versions simultaneously
<?php class First { public function test1() { echo get_called_class(); } public function test2() { print_r(debug_backtrace()); } public function test3() { echo get_class($this); } public function test4() { echo __CLASS__; } public static function test5() { echo get_called_class(); } } class_alias('First', 'Second'); $aliased = new Second(); $aliased->test1(); // First $aliased->test2(); // array( 0 => array( ... [object] => First Object, ... ) ) $aliased->test3(); // First $aliased->test4(); // First Second::test5(); // First

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.4.10.0060.00317.44
8.3.140.0040.00416.97
8.3.130.0090.00018.36
8.3.120.0040.00818.78
8.3.110.0060.00320.94
8.3.100.0070.01116.64
8.3.90.0140.00726.77
8.3.80.0030.00718.30
8.3.70.0070.01116.63
8.3.60.0150.00618.43
8.3.50.0120.00521.27
8.3.40.0100.00718.67
8.3.30.0080.00820.39
8.3.20.0040.00420.21
8.3.10.0080.00022.06
8.3.00.0000.00822.44
8.2.250.0160.00316.67
8.2.240.0070.01018.73
8.2.230.0110.00022.58
8.2.220.0070.00337.54
8.2.210.0040.00426.77
8.2.200.0030.00618.18
8.2.190.0070.01418.29
8.2.180.0040.01125.92
8.2.170.0150.00022.96
8.2.160.0110.00322.16
8.2.150.0000.00724.18
8.2.140.0070.00024.66
8.2.130.0080.00026.16
8.2.120.0070.00020.69
8.2.110.0070.00319.40
8.2.100.0120.00017.84
8.2.90.0000.00817.71
8.2.80.0060.00319.03
8.2.70.0030.00617.63
8.2.60.0050.00318.05
8.2.50.0090.00018.07
8.2.40.0040.00418.20
8.2.30.0040.00418.09
8.2.20.0000.00817.64
8.2.10.0040.00417.61
8.2.00.0050.00317.74
8.1.300.0080.00020.32
8.1.290.0030.00630.84
8.1.280.0080.00825.92
8.1.270.0090.00023.99
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0090.00022.06
8.1.230.0090.00320.91
8.1.220.0000.00817.74
8.1.210.0000.00818.91
8.1.200.0030.00617.23
8.1.190.0060.00317.10
8.1.180.0050.00318.10
8.1.170.0000.00818.79
8.1.160.0000.00718.87
8.1.150.0040.00418.54
8.1.140.0000.00720.27
8.1.130.0000.00717.79
8.1.120.0040.00417.31
8.1.110.0070.00017.39
8.1.100.0070.00017.30
8.1.90.0000.00717.33
8.1.80.0000.00717.43
8.1.70.0040.00417.22
8.1.60.0030.00617.47
8.1.50.0000.00717.57
8.1.40.0000.00717.48
8.1.30.0000.00717.61
8.1.20.0000.00817.65
8.1.10.0000.00717.59
8.1.00.0060.00617.50
8.0.300.0000.00820.20
8.0.290.0050.00216.75
8.0.280.0080.00018.45
8.0.270.0000.00717.18
8.0.260.0070.00016.82
8.0.250.0030.00317.00
8.0.240.0040.00416.91
8.0.230.0070.00016.77
8.0.220.0080.00016.91
8.0.210.0050.00316.73
8.0.200.0000.00616.96
8.0.190.0040.00416.83
8.0.180.0000.00816.88
8.0.170.0000.00716.81
8.0.160.0030.00316.75
8.0.150.0080.00016.75
8.0.140.0070.00016.83
8.0.130.0030.00313.25
8.0.120.0080.00016.76
8.0.110.0030.00516.80
8.0.100.0000.00716.70
8.0.90.0080.00016.68
8.0.80.0120.00316.89
8.0.70.0000.00716.87
8.0.60.0040.00416.66
8.0.50.0020.00516.73
8.0.30.0150.00716.93
8.0.20.0100.00917.40
8.0.10.0040.00416.82
8.0.00.0070.01216.57
7.4.330.0000.00515.00
7.4.320.0030.00316.59
7.4.300.0030.00316.65
7.4.290.0030.00516.51
7.4.280.0040.00416.59
7.4.270.0070.00016.50
7.4.260.0050.00013.29
7.4.250.0070.00016.60
7.4.240.0050.00216.60
7.4.230.0020.00516.50
7.4.220.0070.01916.61
7.4.210.0030.01216.55
7.4.200.0050.00316.68
7.4.190.0070.00016.76
7.4.160.0070.01016.49
7.4.150.0150.00917.40
7.4.140.0110.01017.86
7.4.130.0130.00316.45
7.4.120.0100.00816.46
7.4.110.0090.00916.64
7.4.100.0030.01516.50
7.4.90.0100.00716.45
7.4.80.0130.01019.39
7.4.70.0090.00916.50
7.4.60.0070.01016.67
7.4.50.0030.00616.32
7.4.40.0000.01822.77
7.4.30.0100.00816.50
7.4.10.0020.01715.64
7.4.00.0040.01315.25
7.3.330.0030.00313.21
7.3.320.0050.00013.25
7.3.310.0040.00416.25
7.3.300.0000.00616.25
7.3.290.0070.00016.13
7.3.280.0080.00916.25
7.3.270.0120.00617.40
7.3.260.0100.01416.56
7.3.250.0130.00916.34
7.3.240.0140.00316.45
7.3.230.0030.01416.44
7.3.210.0180.00016.30
7.3.200.0100.01019.39
7.3.190.0100.01216.28
7.3.180.0080.00816.53
7.3.170.0100.00616.39
7.3.160.0060.01116.16
7.3.130.0090.00615.58
7.3.120.0100.00715.07
7.3.110.0070.00915.11
7.3.100.0050.00915.05
7.3.90.0060.00615.10
7.3.80.0050.00815.31
7.3.70.0060.00614.94
7.3.60.0060.00814.97
7.3.50.0070.00915.01
7.3.40.0110.00414.90
7.3.30.0060.00914.91
7.3.20.0090.00616.36
7.3.10.0080.00616.34
7.3.00.0080.00916.50
7.2.330.0090.00916.47
7.2.320.0070.01716.82
7.2.310.0120.00616.40
7.2.300.0090.00916.77
7.2.290.0100.01316.28
7.2.260.0110.00615.64
7.2.250.0060.01315.38
7.2.240.0050.01115.34
7.2.230.0060.01015.52
7.2.220.0110.00415.36
7.2.210.0030.00915.29
7.2.200.0070.00815.32
7.2.190.0060.00715.22
7.2.180.0040.00915.32
7.2.170.0060.00715.32
7.2.160.0070.00915.38
7.2.150.0090.00816.67
7.2.140.0080.00616.77
7.2.130.0200.00816.83
7.2.120.0080.00916.65
7.2.110.0080.00816.64
7.2.100.0070.00716.71
7.2.90.0080.00716.75
7.2.80.0080.00816.78
7.2.70.0080.00916.70
7.2.60.0100.00716.84
7.2.50.0100.00716.80
7.2.40.0100.00616.86
7.2.30.0090.00616.78
7.2.20.0070.00816.74
7.2.10.0080.00716.71
7.2.00.0080.00817.20
7.1.330.0080.00616.25
7.1.320.0040.00716.18
7.1.310.0040.00816.23
7.1.300.0060.00815.57
7.1.290.0080.00515.51
7.1.280.0120.00615.45
7.1.270.0090.00815.57
7.1.260.0070.00815.64
7.1.250.0070.00915.53
7.1.240.0070.01015.49
7.1.230.0060.01115.69
7.1.220.0080.00615.54
7.1.210.0080.01015.57
7.1.200.0090.01015.66
7.1.190.0070.01215.51
7.1.180.0110.00815.53
7.1.170.0090.00915.70
7.1.160.0100.00515.59
7.1.150.0080.00915.57
7.1.140.0050.01015.67
7.1.130.0220.00715.59
7.1.120.0100.00715.53
7.1.110.0090.00615.45
7.1.100.0120.00516.04
7.1.90.0090.00915.63
7.1.80.0070.00915.63
7.1.70.0070.00715.81
7.1.60.0090.00916.24
7.1.50.0100.00815.90
7.1.40.0090.00715.50
7.1.30.0080.00915.40
7.1.20.0100.00915.46
7.1.10.0080.01015.43
7.1.00.0080.01416.85
7.0.330.0200.01113.34
7.0.320.0140.01113.26
7.0.310.0230.00513.36
7.0.300.0200.00413.43
7.0.290.0270.00713.38
7.0.280.0240.01213.30
7.0.270.0240.00913.30
7.0.260.0150.00713.19
7.0.250.0160.01313.48
7.0.240.0180.00413.50
7.0.230.0140.01413.23
7.0.220.0230.00913.64
7.0.210.0170.00613.03
7.0.200.0140.00414.85
7.0.190.0200.00313.15
7.0.180.0170.01013.33
7.0.170.0120.00913.23
7.0.160.0130.01113.09
7.0.150.0180.00613.18
7.0.140.0080.04217.61
7.0.130.0110.01413.41
7.0.120.2340.00313.11
7.0.110.0210.00313.07
7.0.100.0220.00013.00
7.0.90.0140.01413.09
7.0.80.0150.00613.08
7.0.70.0130.01013.44
7.0.60.0120.02917.68
7.0.50.0090.04417.91
7.0.40.0130.04516.71
7.0.30.0150.03816.81
7.0.20.0120.03616.71
7.0.10.0100.03516.77
7.0.00.0100.04016.51
5.6.400.0170.00714.11
5.6.390.0120.00914.35
5.6.380.0180.00313.93
5.6.370.0120.00814.36
5.6.360.0080.01214.34
5.6.350.0160.00414.42
5.6.340.0110.01314.18
5.6.330.0100.01314.45
5.6.320.0150.00914.55
5.6.310.0170.00413.91
5.6.300.0230.00014.53
5.6.290.0170.00814.49
5.6.280.0060.04317.45
5.6.270.0150.00914.33
5.6.260.0100.00514.33
5.6.250.0140.00914.17
5.6.240.0130.01014.24
5.6.230.0130.00614.14
5.6.220.0140.01114.24
5.6.210.0060.03417.41
5.6.200.0140.04217.60
5.6.190.0040.04617.51
5.6.180.0050.05017.59
5.6.170.0080.03117.77
5.6.160.0130.03517.65
5.6.150.0120.02717.61
5.6.140.0090.04417.69
5.6.130.0170.04117.65
5.6.120.0120.04117.56
5.6.110.0120.03317.52
5.6.100.0070.04717.61
5.6.90.0100.04317.65
5.6.80.0070.04417.32
5.6.70.0120.02617.27
5.6.60.0150.03917.32
5.6.50.0110.03517.11
5.6.40.0100.03917.30
5.6.30.0040.04517.25
5.6.20.0130.04017.34
5.6.10.0110.04217.32
5.6.00.0110.04117.30
5.5.380.0210.00314.44
5.5.370.0040.02014.35
5.5.360.0160.00614.29
5.5.350.0110.04217.23
5.5.340.0030.04417.71
5.5.330.0080.04317.42
5.5.320.0100.04617.55
5.5.310.0100.04317.59
5.5.300.0130.04317.27
5.5.290.0150.03517.48
5.5.280.0090.04717.35
5.5.270.0100.04317.34
5.5.260.0140.04517.46
5.5.250.0080.04517.46
5.5.240.0090.04117.21
5.5.230.0090.04917.01
5.5.220.0100.03417.05
5.5.210.0150.02817.25
5.5.200.0070.04616.98
5.5.190.0040.04817.20
5.5.180.0090.03817.01
5.5.170.0200.00314.27
5.5.160.0130.03817.30
5.5.150.0150.03717.19
5.5.140.0110.03917.22
5.5.130.0100.03517.13
5.5.120.0090.02417.17
5.5.110.0100.02517.12
5.5.100.0130.03417.23
5.5.90.0090.02416.91
5.5.80.0080.02816.85
5.5.70.0110.04117.12
5.5.60.0100.03417.11
5.5.50.0080.04317.15
5.5.40.0070.04316.90
5.5.30.0110.03717.01
5.5.20.0110.04117.03
5.5.10.0090.03717.01
5.5.00.0040.04816.90
5.4.450.0040.04515.42
5.4.440.0110.03015.34
5.4.430.0080.03315.37
5.4.420.0050.04315.35
5.4.410.0060.03515.37
5.4.400.0070.03715.21
5.4.390.0060.03515.27
5.4.380.0050.03215.13
5.4.370.0050.04215.25
5.4.360.0090.02315.12
5.4.350.0040.03415.13
5.4.340.0080.03715.18
5.4.330.0070.00711.34
5.4.320.0060.04015.12
5.4.310.0060.03315.20
5.4.300.0050.04315.12
5.4.290.0090.03615.13
5.4.280.0040.04115.18
5.4.270.0100.01815.20
5.4.260.0070.02515.12
5.4.250.0110.03415.13
5.4.240.0090.02515.12
5.4.230.0070.03015.26
5.4.220.0070.02015.17
5.4.210.0090.03015.17
5.4.200.0080.04015.22
5.4.190.0080.03715.12
5.4.180.0070.03815.27
5.4.170.0040.03915.22
5.4.160.0040.04415.24
5.4.150.0030.04215.19
5.4.140.0100.03413.81
5.4.130.0060.03713.87
5.4.120.0050.04113.87
5.4.110.0090.03213.90
5.4.100.0070.03513.94
5.4.90.0060.04113.94
5.4.80.0090.04213.91
5.4.70.0060.04013.94
5.4.60.0050.03713.91
5.4.50.0090.03813.94
5.4.40.0090.03713.81
5.4.30.0110.03113.89
5.4.20.0080.03513.87
5.4.10.0080.02013.93
5.4.00.0050.02113.59
5.3.290.0040.04413.04
5.3.280.0050.04112.95
5.3.270.0050.03612.93
5.3.260.0090.03812.98
5.3.250.0070.03613.00
5.3.240.0080.03313.02
5.3.230.0040.03112.93
5.3.220.0050.03713.01
5.3.210.0100.03712.91
5.3.200.0100.03712.96
5.3.190.0110.03712.95
5.3.180.0100.04512.98
5.3.170.0080.03813.00
5.3.160.0080.04012.98
5.3.150.0070.04012.91
5.3.140.0040.04312.96
5.3.130.0110.03212.96
5.3.120.0100.03512.97
5.3.110.0040.03212.95
5.3.100.0040.02112.65
5.3.90.0050.02112.71
5.3.80.0020.02212.61
5.3.70.0060.02012.74
5.3.60.0060.02012.60
5.3.50.0050.02212.57
5.3.40.0060.02112.69
5.3.30.0070.01512.55
5.3.20.0040.01912.53
5.3.10.0090.02012.51
5.3.00.0080.01812.49

preferences:
37.88 ms | 403 KiB | 5 Q