3v4l.org

run code in 300+ PHP versions simultaneously
<?php $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);

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.01116.61
8.3.50.0130.00621.98
8.3.40.0110.00418.63
8.3.30.0120.00319.09
8.3.20.0040.00420.34
8.3.10.0060.00323.66
8.3.00.0060.00319.51
8.2.180.0180.00418.34
8.2.170.0120.00322.96
8.2.160.0070.00720.35
8.2.150.0070.00024.18
8.2.140.0030.00524.66
8.2.130.0100.00726.16
8.2.120.0000.00722.20
8.2.110.0030.00622.21
8.2.100.0080.00417.91
8.2.90.0000.00719.26
8.2.80.0030.00517.97
8.2.70.0050.00317.63
8.2.60.0000.00817.80
8.2.50.0000.00918.07
8.2.40.0060.00318.22
8.2.30.0070.00017.93
8.2.20.0040.00417.65
8.2.10.0000.00718.10
8.2.00.0030.00617.61
8.1.280.0070.01125.92
8.1.270.0030.00622.20
8.1.260.0020.00526.35
8.1.250.0080.00028.09
8.1.240.0060.00323.77
8.1.230.0040.00719.17
8.1.220.0060.00317.74
8.1.210.0040.00418.77
8.1.200.0030.00617.36
8.1.190.0050.00317.51
8.1.180.0040.00418.10
8.1.170.0040.00418.24
8.1.160.0060.00321.87
8.1.150.0040.00418.58
8.1.140.0040.00417.37
8.1.130.0000.00717.82
8.1.120.0000.00717.32
8.1.110.0080.00017.32
8.1.100.0040.00417.33
8.1.90.0000.00717.35
8.1.80.0000.00817.41
8.1.70.0030.00317.26
8.1.60.0000.00917.51
8.1.50.0030.00517.53
8.1.40.0070.00017.41
8.1.30.0040.00417.55
8.1.20.0000.00717.55
8.1.10.0000.00817.42
8.1.00.0000.00717.34
8.0.300.0040.00418.77
8.0.290.0040.00417.16
8.0.280.0030.00318.38
8.0.270.0030.00317.19
8.0.260.0000.00816.92
8.0.250.0040.00416.92
8.0.240.0040.00416.84
8.0.230.0030.00316.78
8.0.220.0070.00016.80
8.0.210.0030.00316.84
8.0.200.0000.00716.90
8.0.190.0030.00516.83
8.0.180.0000.00816.89
8.0.170.0040.00416.92
8.0.160.0000.00716.92
8.0.150.0000.00816.89
8.0.140.0070.00016.88
8.0.130.0030.00313.31
8.0.120.0050.00216.75
8.0.110.0040.00416.87
8.0.100.0070.00016.71
8.0.90.0000.00716.89
8.0.80.0060.00916.84
8.0.70.0040.00416.91
8.0.60.0050.00216.83
8.0.50.0040.00416.77
8.0.30.0150.00517.21
8.0.20.0090.00917.40
8.0.10.0000.00817.05
8.0.00.0090.01016.73
7.4.330.0060.00015.15
7.4.320.0000.00616.60
7.4.300.0060.00016.56
7.4.290.0000.00716.43
7.4.280.0030.00316.60
7.4.270.0000.00716.51
7.4.260.0100.00016.48
7.4.250.0070.00016.45
7.4.240.0040.00416.64
7.4.230.0000.00716.47
7.4.220.0030.01516.47
7.4.210.0060.01016.53
7.4.200.0000.00816.70
7.4.190.0040.00416.77
7.4.160.0150.00616.57
7.4.150.0120.00617.40
7.4.140.0100.00717.86
7.4.130.0100.01016.64
7.4.120.0130.00516.51
7.4.110.0070.01016.44
7.4.100.0160.00616.64
7.4.90.0090.01016.39
7.4.80.0080.01119.39
7.4.70.0070.01016.50
7.4.60.0100.00616.49
7.4.50.0000.00616.31
7.4.40.0090.00622.77
7.4.30.0070.01016.47
7.4.10.0090.00715.67
7.4.00.0080.00815.45
7.3.330.0000.00513.06
7.3.320.0000.00513.16
7.3.310.0040.00316.36
7.3.300.0030.00316.29
7.3.290.0090.00616.36
7.3.280.0090.01016.37
7.3.270.0040.01817.40
7.3.260.0130.00616.29
7.3.250.0070.01016.39
7.3.240.0140.00916.34
7.3.230.0110.00616.48
7.3.210.0110.01016.53
7.3.200.0070.01019.39
7.3.190.0060.01016.31
7.3.180.0100.00616.31
7.3.170.0090.00616.35
7.3.160.0180.00316.36
7.3.130.0080.01015.63
7.3.120.0070.00915.34
7.3.110.0070.00915.17
7.3.100.0070.00715.12
7.3.90.0050.00915.39
7.3.80.0040.00915.33
7.3.70.0040.00815.35
7.3.60.0030.00815.24
7.3.50.0030.01015.29
7.3.40.0050.00615.30
7.3.30.0020.01015.36
7.3.20.0060.00617.13
7.3.10.0040.00717.15
7.3.00.0060.00717.21
7.2.330.0110.00616.35
7.2.320.0070.01016.66
7.2.310.0110.00616.61
7.2.300.0130.00716.69
7.2.290.0160.00616.80
7.2.260.0100.00815.54
7.2.250.0060.01215.47
7.2.240.0060.00915.44
7.2.230.0060.00615.53
7.2.220.0010.01415.44
7.2.210.0060.00815.49
7.2.200.0080.00415.39
7.2.190.0060.00615.52
7.2.180.0040.00915.44
7.2.170.0020.01115.61
7.2.160.0060.00715.51
7.2.150.0100.00217.36
7.2.140.0050.01117.31
7.2.130.0050.01117.42
7.2.120.0060.00617.47
7.2.110.0080.00717.28
7.2.100.0080.00817.44
7.2.90.0040.00917.49
7.2.80.0060.00717.34
7.2.70.0060.00817.38
7.2.60.0060.00817.20
7.2.50.0040.00917.29
7.2.40.0070.00817.39
7.2.30.0090.00417.39
7.2.20.0080.00617.50
7.2.10.0060.00817.34
7.2.00.0070.00817.10
7.1.330.0070.00716.31
7.1.320.0070.00616.32
7.1.310.0040.00916.32
7.1.300.0080.00416.20
7.1.290.0040.00816.38
7.1.280.0060.00716.39
7.1.270.0050.00616.21
7.1.260.0020.01016.38
7.1.250.0100.00516.32
7.1.240.0010.01216.35
7.1.230.0030.01316.59
7.1.220.0070.01016.49
7.1.210.0060.00916.63
7.1.200.0050.00816.29
7.1.190.0080.00916.46
7.1.180.0030.01016.27
7.1.170.0030.01216.54
7.1.160.0070.00716.55
7.1.150.0080.00616.47
7.1.140.0030.00716.47
7.1.130.0070.00816.52
7.1.120.0050.01016.54
7.1.110.0080.00516.44
7.1.100.0050.00816.59
7.1.90.0050.00716.50
7.1.80.0070.00716.36
7.1.70.0090.00216.56
7.1.60.0060.01317.56
7.1.50.0080.00716.59
7.1.40.0090.00616.54
7.1.30.0070.00716.63
7.1.20.0020.01116.57
7.1.10.0070.00716.53
7.1.00.0090.02718.45
7.0.330.0060.00715.97
7.0.320.0060.00616.13
7.0.310.0030.01116.19
7.0.300.0070.00416.09
7.0.290.0060.00816.25
7.0.280.0060.00916.19
7.0.270.0030.01216.30
7.0.260.0040.00916.10
7.0.250.0090.00216.19
7.0.240.0070.00816.20
7.0.230.0050.00916.30
7.0.220.0090.00616.19
7.0.210.0080.00516.10
7.0.200.0040.00816.22
7.0.190.0060.00616.16
7.0.180.0060.00816.12
7.0.170.0080.00716.29
7.0.160.0100.00316.14
7.0.150.0050.00916.18
7.0.140.0050.02718.21
7.0.130.0010.00916.16
7.0.120.0050.00815.96
7.0.110.0070.00916.24
7.0.100.0030.00816.13
7.0.90.0050.01016.14
7.0.80.0190.03017.36
7.0.70.0120.02017.33
7.0.60.0200.02817.39
7.0.50.0220.01917.54
7.0.40.0090.02816.12
7.0.30.0040.03516.10
7.0.20.0130.02816.05
7.0.10.0040.03516.04
7.0.00.0070.02616.11
5.6.400.0060.00715.04
5.6.390.0030.00815.30
5.6.380.0020.01215.32
5.6.370.0060.00815.29
5.6.360.0120.00315.25
5.6.350.0060.00615.23
5.6.340.0070.00515.15
5.6.330.0080.00915.13
5.6.320.0080.00815.08
5.6.310.0090.00615.26
5.6.300.0050.00815.02
5.6.290.0040.00715.24
5.6.280.0060.00614.89
5.6.270.0060.00615.15
5.6.260.0090.00315.14
5.6.250.0030.00915.09
5.6.240.0070.00415.19
5.6.230.0080.02716.90
5.6.220.0050.03516.91
5.6.210.0080.02916.91
5.6.200.0060.03417.07
5.6.190.0090.01717.01
5.6.180.0090.01917.05
5.6.170.0040.03217.11
5.6.160.0070.01916.96
5.6.150.0010.02617.07
5.6.140.0060.02117.09
5.6.130.0050.03517.08
5.6.120.0060.03217.05
5.6.110.0100.02917.08
5.6.100.0050.03517.17
5.6.90.0020.02916.95
5.6.80.0080.03016.75
5.6.70.0030.02216.89
5.6.60.0070.03416.78
5.6.50.0060.02616.66
5.6.40.0060.03216.75
5.6.30.0100.02216.73
5.6.20.0090.03016.71
5.6.10.0110.02616.70
5.6.00.0070.02316.94
5.5.380.0070.00914.95
5.5.370.0050.02916.86
5.5.360.0030.03116.74
5.5.350.0060.02316.81
5.5.340.0050.03316.78
5.5.330.0060.03116.73
5.5.320.0050.03417.02
5.5.310.0090.03417.00
5.5.300.0080.03116.74
5.5.290.0080.01916.82
5.5.280.0060.03416.89
5.5.270.0020.03716.78
5.5.260.0090.03116.83
5.5.250.0040.03416.75
5.5.240.0100.02416.61
5.5.230.0040.03616.56
5.5.220.0090.03016.52
5.5.210.0050.03116.68
5.5.200.0100.02816.67
5.5.190.0060.03316.69
5.5.180.0090.03016.71
5.5.170.0030.01015.02
5.5.160.0060.02316.65
5.5.150.0090.03116.82
5.5.140.0070.03316.73
5.5.130.0030.03016.64
5.5.120.0110.02816.71
5.5.110.0130.02716.67
5.5.100.0050.03616.51
5.5.90.0090.02916.53
5.5.80.0060.02616.43
5.5.70.0080.02816.52
5.5.60.0060.02716.46
5.5.50.0050.03216.65
5.5.40.0060.02116.59
5.5.30.0080.02816.42
5.5.20.0090.02916.66
5.5.10.0080.02116.55
5.5.00.0050.02016.69
5.4.450.0060.02214.16
5.4.440.0050.03214.21
5.4.430.0100.02814.11
5.4.420.0020.03014.11
5.4.410.0030.02814.28
5.4.400.0020.01914.15
5.4.390.0050.02713.95
5.4.380.0040.02414.15
5.4.370.0060.02514.00
5.4.360.0100.02813.97
5.4.350.0060.02914.08
5.4.340.0090.02614.07
5.4.330.0030.00911.49
5.4.320.0020.02314.12
5.4.310.0080.02414.05
5.4.300.0090.02614.02
5.4.290.0070.02714.11
5.4.280.0080.02813.93
5.4.270.0060.02914.03
5.4.260.0030.02914.12
5.4.250.0020.03514.04
5.4.240.0070.03114.00
5.4.230.0030.02313.94
5.4.220.0080.02814.09
5.4.210.0050.03214.03
5.4.200.0090.02714.10
5.4.190.0050.02714.15
5.4.180.0040.02013.97
5.4.170.0100.02514.11
5.4.160.0010.02413.97
5.4.150.0060.02813.90
5.4.140.0050.02813.17
5.4.130.0010.03113.25
5.4.120.0060.02813.10
5.4.110.0100.02313.22
5.4.100.0030.03013.05
5.4.90.0060.02913.14
5.4.80.0090.02513.02
5.4.70.0070.02813.21
5.4.60.0030.02813.14
5.4.50.0010.03113.18
5.4.40.0080.01813.10
5.4.30.0030.02113.01
5.4.20.0050.03013.16
5.4.10.0080.02713.24
5.4.00.0030.02512.93
5.3.290.0130.07314.60
5.3.280.0130.07314.57
5.3.270.0100.07314.46
5.3.260.0070.07314.46
5.3.250.0100.04314.54
5.3.240.0000.07714.54
5.3.230.0070.07014.55
5.3.220.0100.07314.40
5.3.210.0130.06714.43
5.3.200.0030.06314.47
5.3.190.0100.03714.44
5.3.180.0030.03714.55
5.3.170.0030.06014.55
5.3.160.0000.04714.55
5.3.150.0100.07014.38
5.3.140.0030.08314.49
5.3.130.0000.04314.51
5.3.120.0070.03314.55
5.3.110.0070.04314.38
5.3.100.0130.06313.89
5.3.90.0070.04313.92
5.3.80.0070.07713.92
5.3.70.0070.07013.88
5.3.60.0030.08014.00
5.3.50.0070.07313.93
5.3.40.0100.06313.80
5.3.30.0100.07313.68
5.3.20.0070.06313.69
5.3.10.0070.03313.60
5.3.00.0000.05013.56
5.2.170.0070.06013.56
5.2.160.0100.05313.56
5.2.150.0030.06713.56
5.2.140.0000.06713.56
5.2.130.0070.04313.56
5.2.120.0070.06313.56
5.2.110.0030.06313.56
5.2.100.0000.03313.56
5.2.90.0130.04313.56
5.2.80.0030.03013.56
5.2.70.0070.06313.56
5.2.60.0070.03313.56
5.2.50.0000.06713.56
5.2.40.0030.05013.56
5.2.30.0000.06313.56
5.2.20.0030.03713.56
5.2.10.0100.05013.56
5.2.00.0030.05313.56
5.1.60.0070.04713.56
5.1.50.0070.03713.56
5.1.40.0000.06013.56
5.1.30.0000.04713.56
5.1.20.0130.04313.56
5.1.10.0000.04313.56
5.1.00.0100.03713.56
5.0.50.0100.02713.56
5.0.40.0030.04013.56
5.0.30.0070.06013.56
5.0.20.0070.03713.56
5.0.10.0070.04013.56
5.0.00.0000.04713.56
4.4.90.0070.02713.56
4.4.80.0030.03313.56
4.4.70.0000.04013.56
4.4.60.0000.03713.56
4.4.50.0000.02013.56
4.4.40.0000.04013.56
4.4.30.0030.01713.56
4.4.20.0000.02713.56
4.4.10.0000.04013.56
4.4.00.0000.04313.56
4.3.110.0000.03013.56
4.3.100.0030.02713.56
4.3.90.0000.03013.56
4.3.80.0000.04713.56
4.3.70.0000.02013.56
4.3.60.0100.02713.56
4.3.50.0000.03713.56
4.3.40.0000.05013.56
4.3.30.0000.03313.56
4.3.20.0070.03013.56
4.3.10.0030.03313.56
4.3.00.0000.03713.56

preferences:
37.77 ms | 401 KiB | 5 Q