3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { private function x() { # retrieve caller name $calledby = debug_backtrace(); print_r($calledby); // does not work $caller = (strlen($calledby[1]['class'])) ? $calledby[1]['class'] : $calledby[0]['class']; // works and does does not segfault if (strlen($calledby[1]['class'])) $caller = $calledby[1]['class']; else $caller = $calledby[0]['class']; # arguments are required if (!func_num_args()) { return; } # fill variables with argument contents if exists $variables = (func_num_args() == 0) ? NULL : (is_array(func_get_arg(0)) ? func_get_arg(0) : NULL); } public function __construct() { $this->x("Whaa"); } } new A();

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.0040.01818.31
8.3.50.0240.00822.10
8.3.40.0090.00618.72
8.3.30.0140.00019.04
8.3.20.0080.00020.29
8.3.10.0080.00022.10
8.3.00.0080.00022.34
8.2.180.0090.00618.16
8.2.170.0090.00622.96
8.2.160.0120.00620.72
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0030.00519.36
8.2.110.0050.00520.57
8.2.100.0030.00917.66
8.2.90.0030.00617.75
8.2.80.0050.00318.79
8.2.70.0000.00817.50
8.2.60.0030.00518.04
8.2.50.0040.00418.07
8.2.40.0040.00418.29
8.2.30.0000.00718.06
8.2.20.0000.00717.68
8.2.10.0030.00519.59
8.2.00.0120.00017.76
8.1.280.0140.00025.92
8.1.270.0000.00823.99
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00618.90
8.1.230.0070.00417.70
8.1.220.0050.00217.74
8.1.210.0050.00318.77
8.1.200.0060.00317.35
8.1.190.0050.00317.22
8.1.180.0050.00318.10
8.1.170.0000.00818.64
8.1.160.0080.00018.88
8.1.150.0040.00418.68
8.1.140.0060.00317.37
8.1.130.0030.00317.73
8.1.120.0040.00417.36
8.1.110.0000.00717.34
8.1.100.0030.00317.33
8.1.90.0000.00817.31
8.1.80.0000.00717.55
8.1.70.0050.00317.43
8.1.60.0040.00417.57
8.1.50.0000.00817.40
8.1.40.0070.00017.56
8.1.30.0040.00417.54
8.1.20.0030.00517.52
8.1.10.0040.00417.64
8.1.00.0080.00017.51
8.0.300.0050.00318.77
8.0.290.0020.00516.75
8.0.280.0040.00418.38
8.0.270.0040.00417.29
8.0.260.0040.00418.49
8.0.250.0030.00316.98
8.0.240.0020.00516.89
8.0.230.0030.00416.94
8.0.220.0000.00716.80
8.0.210.0070.00016.76
8.0.200.0000.00717.00
8.0.190.0040.00417.02
8.0.180.0000.00716.91
8.0.170.0000.00716.93
8.0.160.0040.00416.97
8.0.150.0030.00316.88
8.0.140.0000.00716.74
8.0.130.0050.00013.34
8.0.120.0050.00216.84
8.0.110.0040.00416.91
8.0.100.0040.00416.89
8.0.90.0000.00816.90
8.0.80.0100.00716.95
8.0.70.0070.00016.72
8.0.60.0000.00716.86
8.0.50.0060.00316.84
8.0.30.0120.01017.10
8.0.20.0070.01117.40
8.0.10.0050.00316.98
8.0.00.0150.01416.83
7.4.330.0000.00515.21
7.4.320.0000.00616.61
7.4.300.0030.00316.61
7.4.290.0040.00416.60
7.4.280.0030.00316.61
7.4.270.0000.00716.61
7.4.260.0080.00016.50
7.4.250.0000.00716.41
7.4.240.0040.00416.61
7.4.230.0000.00716.50
7.4.220.0090.00916.46
7.4.210.0100.00716.62
7.4.200.0000.00716.58
7.4.190.0000.00716.50
7.4.160.0090.00616.40
7.4.150.0130.00317.40
7.4.140.0090.01317.86
7.4.130.0110.00616.56
7.4.120.0110.00816.70
7.4.110.0110.00716.40
7.4.100.0100.01016.57
7.4.90.0130.00316.47
7.4.80.0100.00719.39
7.4.70.0090.00916.59
7.4.60.0060.01016.48
7.4.50.0030.00316.38
7.4.40.0100.00222.77
7.4.30.0060.01016.57
7.4.10.0130.00614.68
7.4.00.0020.01515.00
7.3.330.0030.00213.36
7.3.320.0030.00313.16
7.3.310.0040.00416.32
7.3.300.0040.00216.30
7.3.290.0070.00716.36
7.3.280.0060.01116.35
7.3.270.0060.01217.40
7.3.260.0110.00716.51
7.3.250.0130.00316.37
7.3.240.0100.00716.29
7.3.230.0110.00716.39
7.3.210.0030.01316.29
7.3.200.0160.00619.39
7.3.190.0090.00616.49
7.3.180.0070.01016.45
7.3.170.0060.01616.45
7.3.160.0110.00616.38
7.3.130.0030.01414.87
7.3.120.0080.00614.86
7.3.110.0070.01114.77
7.3.100.0000.01414.76
7.3.90.0030.01014.63
7.3.80.0110.00714.79
7.3.70.0080.00814.79
7.3.60.0040.01214.86
7.3.50.0070.00714.96
7.3.40.0060.00914.71
7.3.30.0080.00014.76
7.3.20.0070.00716.65
7.3.10.0030.01016.68
7.3.00.0050.00716.44
7.2.330.0080.00816.60
7.2.320.0140.01116.77
7.2.310.0170.00016.75
7.2.300.0030.01416.54
7.2.290.0160.00416.84
7.2.260.0070.01115.04
7.2.250.0080.00815.03
7.2.240.0110.00415.09
7.2.230.0120.00614.71
7.2.220.0080.00615.11
7.2.210.0030.01415.21
7.2.200.0090.00615.13
7.2.190.0080.00414.74
7.2.180.0070.00815.02
7.2.170.0000.00914.88
7.2.160.0070.00715.23
7.2.150.0060.00316.89
7.2.140.0060.00617.10
7.2.130.0080.00316.80
7.2.120.0020.01416.86
7.2.110.0050.00717.01
7.2.100.0050.00816.96
7.2.90.0050.00916.95
7.2.80.0020.01216.87
7.2.70.0020.00916.85
7.2.60.0050.00616.88
7.2.50.0040.01116.74
7.2.40.0090.00316.84
7.2.30.0030.00716.88
7.2.20.0070.01016.99
7.2.10.0030.01016.93
7.2.00.0050.01117.04
7.1.330.0070.00715.95
7.1.320.0080.00415.62
7.1.310.0120.00315.89
7.1.300.0080.00415.76
7.1.290.0060.00815.83
7.1.280.0030.01215.86
7.1.270.0060.00615.92
7.1.260.0000.01015.86
7.1.250.0060.00515.76
7.1.240.0090.00315.80
7.1.230.0050.00815.75
7.1.220.0050.00815.75
7.1.210.0000.00815.91
7.1.200.0030.00515.79
7.1.190.0030.01015.82
7.1.180.0070.01015.94
7.1.170.0030.00915.74
7.1.160.0030.01015.57
7.1.150.0100.00315.91
7.1.140.0040.00815.82
7.1.130.0070.00715.68
7.1.120.0030.00715.78
7.1.110.0080.00815.75
7.1.100.0100.00315.85
7.1.90.0090.00315.55
7.1.80.0000.01815.86
7.1.70.0040.00516.39
7.1.60.0030.01717.69
7.1.50.0020.01316.27
7.1.40.0020.01215.68
7.1.30.0060.00615.71
7.1.20.0070.00715.47
7.1.10.0080.00515.84
7.1.00.0020.04719.15
7.0.330.0060.00615.16
7.0.320.0030.00615.31
7.0.310.0030.01315.09
7.0.300.0030.01215.12
7.0.290.0100.00715.16
7.0.280.0080.00015.33
7.0.270.0030.00915.06
7.0.260.0030.01215.08
7.0.250.0060.01015.27
7.0.240.0100.00315.08
7.0.230.0060.00915.27
7.0.220.0030.01415.48
7.0.210.0040.01115.44
7.0.200.0060.00515.83
7.0.190.0070.00415.31
7.0.180.0060.00915.41
7.0.170.0120.00015.22
7.0.160.0050.00515.53
7.0.150.0030.01415.45
7.0.140.0060.04118.70
7.0.130.0040.01115.47
7.0.120.0000.01315.49
7.0.110.0090.00615.11
7.0.100.0100.00715.13
7.0.90.0090.00615.51
7.0.80.0060.00915.53
7.0.70.0000.04918.49
7.0.60.0020.04618.56
7.0.50.0030.04318.76
7.0.40.0030.02816.70
7.0.30.0060.03616.66
7.0.20.0020.05016.76
7.0.10.0070.03916.75
7.0.00.0000.04516.70
5.6.400.0070.00714.36
5.6.390.0040.00714.64
5.6.380.0060.00614.28
5.6.370.0040.01114.75
5.6.360.0070.01114.81
5.6.350.0070.00714.59
5.6.340.0000.01014.66
5.6.330.0060.00314.05
5.6.320.0100.00714.63
5.6.310.0100.00314.66
5.6.300.0070.00713.97
5.6.290.0030.01014.59
5.6.280.0040.04117.66
5.6.270.0080.00414.42
5.6.260.0070.00714.48
5.6.250.0100.00314.38
5.6.240.0060.00314.40
5.6.230.0060.00614.16
5.6.220.0050.03217.58
5.6.210.0120.03717.62
5.6.200.0100.04417.73
5.6.190.0030.04617.71
5.6.180.0050.03817.72
5.6.170.0050.04517.76
5.6.160.0070.04217.61
5.6.150.0030.04517.65
5.6.140.0100.02817.72
5.6.130.0100.04517.79
5.6.120.0050.04717.80
5.6.110.0020.04517.77
5.6.100.0020.04617.70
5.6.90.0000.04717.58
5.6.80.0100.02517.45
5.6.70.0080.03817.29
5.6.60.0100.03817.39
5.6.50.0020.02917.38
5.6.40.0020.03917.31
5.6.30.0070.03017.49
5.6.20.0030.02817.37
5.6.10.0060.02817.33
5.6.00.0080.03317.38
5.5.380.0000.01014.32
5.5.370.0070.00714.43
5.5.360.0080.03917.30
5.5.350.0070.04417.26
5.5.340.0030.04517.46
5.5.330.0030.04117.62
5.5.320.0060.04317.48
5.5.310.0050.04117.71
5.5.300.0040.04517.65
5.5.290.0050.04617.56
5.5.280.0020.02917.48
5.5.270.0060.02517.72
5.5.260.0080.04217.43
5.5.250.0050.03317.46
5.5.240.0050.04217.15
5.5.230.0080.04017.07
5.5.220.0050.04217.15
5.5.210.0030.03917.29
5.5.200.0060.02417.10
5.5.190.0050.03717.24
5.5.180.0030.03017.24
5.5.170.0090.00614.26
5.5.160.0020.03817.16
5.5.150.0090.03817.32
5.5.140.0060.04817.21
5.5.130.0090.02917.21
5.5.120.0030.04517.29
5.5.110.0030.04017.33
5.5.100.0070.04317.05
5.5.90.0100.03817.08
5.5.80.0050.02317.14
5.5.70.0110.03517.25
5.5.60.0110.03617.15
5.5.50.0000.04717.11
5.5.40.0050.04117.24
5.5.30.0070.03917.07
5.5.20.0070.04217.28
5.5.10.0040.03716.95
5.5.00.0100.03317.13
5.4.450.0060.04015.43
5.4.440.0020.04415.04
5.4.430.0050.04015.38
5.4.420.0070.04315.08
5.4.410.0070.02715.02
5.4.400.0050.04114.96
5.4.390.0050.04214.90
5.4.380.0050.04015.03
5.4.370.0070.03415.08
5.4.360.0070.03215.14
5.4.350.0120.03514.97
5.4.340.0050.03714.98
5.4.330.0100.00310.88
5.4.320.0090.03415.20
5.4.310.0060.03615.10
5.4.300.0030.03615.04
5.4.290.0050.02514.82
5.4.280.0060.02115.05
5.4.270.0130.03315.21
5.4.260.0080.03815.05
5.4.250.0060.03814.96
5.4.240.0030.03515.07
5.4.230.0020.03814.88
5.4.220.0060.03815.06
5.4.210.0050.03315.06
5.4.200.0050.03415.02
5.4.190.0030.04315.00
5.4.180.0000.04615.08
5.4.170.0050.04014.98
5.4.160.0070.03814.96
5.4.150.0070.03514.92
5.4.140.0030.03313.69
5.4.130.0050.03813.54
5.4.120.0040.04113.78
5.4.110.0030.02313.69
5.4.100.0050.02513.81
5.4.90.0050.03813.70
5.4.80.0030.04213.80
5.4.70.0080.03113.76
5.4.60.0050.03613.73
5.4.50.0050.04113.70
5.4.40.0020.04413.77
5.4.30.0040.04013.81
5.4.20.0030.02513.74
5.4.10.0000.02613.75
5.4.00.0000.02913.19
5.3.290.0030.03612.59
5.3.280.0030.04012.43
5.3.270.0020.03012.51
5.3.260.0050.03612.63
5.3.250.0070.04212.51
5.3.240.0020.02712.56
5.3.230.0050.04012.58
5.3.220.0030.02812.41
5.3.210.0050.02312.46
5.3.200.0040.04212.47
5.3.190.0090.03512.63
5.3.180.0070.03512.69
5.3.170.0080.03812.61
5.3.160.0060.02712.66
5.3.150.0030.03912.52
5.3.140.0000.04812.53
5.3.130.0070.03512.50
5.3.120.0020.03012.53
5.3.110.0030.02612.61
5.3.100.0050.02112.35
5.3.90.0030.02512.23
5.3.80.0050.03312.18
5.3.70.0060.03312.08
5.3.60.0040.03912.31
5.3.50.0070.03012.09
5.3.40.0040.03412.25
5.3.30.0050.03812.35
5.3.20.0030.04011.92
5.3.10.0040.02711.88
5.3.00.0070.03211.82
5.2.170.0000.06311.23
5.2.160.0030.05711.28
5.2.150.0000.05711.15
5.2.140.0070.05711.25
5.2.130.0000.04711.22
5.2.120.0030.06011.01
5.2.110.0070.05711.21
5.2.100.0030.05711.02
5.2.90.0070.04711.17
5.2.80.0030.06011.02
5.2.70.0000.05711.11
5.2.60.0000.06310.96
5.2.50.0030.06010.90
5.2.40.0000.06310.89
5.2.30.0030.06011.00
5.2.20.0070.03711.10
5.2.10.0000.06310.79
5.2.00.0000.06010.63
5.1.60.0030.05310.06
5.1.50.0000.05310.00
5.1.40.0000.05010.03
5.1.30.0000.05310.40
5.1.20.0000.04710.47
5.1.10.0070.05010.15
5.1.00.0000.05310.13
5.0.50.0000.0409.88
5.0.40.0030.0379.88
5.0.30.0100.0609.88
5.0.20.0000.0379.88
5.0.10.0070.0279.88
5.0.00.0070.0579.88
4.4.90.0030.0279.88
4.4.80.0000.0339.88
4.4.70.0000.0209.88
4.4.60.0030.0309.88
4.4.50.0030.0239.88
4.4.40.0030.0579.88
4.4.30.0030.0339.88
4.4.20.0000.0309.88
4.4.10.0000.0279.88
4.4.00.0000.0539.88
4.3.110.0000.0339.88
4.3.100.0000.0339.88
4.3.90.0030.0239.88
4.3.80.0000.0539.88
4.3.70.0030.0339.88
4.3.60.0030.0309.91
4.3.50.0000.0379.91
4.3.40.0000.0539.91
4.3.30.0000.0379.91
4.3.20.0000.0379.91
4.3.10.0030.0279.91
4.3.00.0030.0339.91

preferences:
48.27 ms | 401 KiB | 5 Q