3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(ticks=1); function my_function() { echo print_r(debug_backtrace(), 1) . '<br/>'; } register_tick_function('my_function', true); $t = false; $ar = ['test1' => '111']; var_dump('->' . __METHOD__ . ' on ' . __FILE__ . ':' . __LINE__); foreach ($ar as $k => $e) { $t = ($k === 'test2'); var_dump('$t==='. var_export($t, 1)); if ($t===false) { continue; } var_dump('this line code is not executed (execute "continue")'); test2(); test3(); // this will handled or .. // test4(); // uncomment this and this will handled (but function not exist) } var_dump('->' . __METHOD__ . ' on ' . __FILE__ . ':' . __LINE__); function test2() { // this never handled (why? =)) return 1; } function test3() { var_dump('->' . __METHOD__ . ' on ' . __FILE__ . ':' . __LINE__); }

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.0110.00318.18
8.3.50.0220.00817.45
8.3.40.0110.01118.79
8.3.30.0180.00418.48
8.3.20.0040.00420.77
8.3.10.0000.00721.89
8.3.00.0080.00023.58
8.2.180.0110.00416.38
8.2.170.0140.00422.96
8.2.160.0100.00321.20
8.2.150.0040.00424.18
8.2.140.0000.00924.66
8.2.130.0070.00026.16
8.2.120.0120.00619.51
8.2.110.0090.00022.12
8.2.100.0100.00317.76
8.2.90.0000.00817.63
8.2.80.0050.00517.97
8.2.70.0000.00817.93
8.2.60.0050.00317.63
8.2.50.0040.00418.10
8.2.40.0040.00419.39
8.2.30.0040.00419.17
8.2.20.0040.00418.01
8.2.10.0040.00419.33
8.2.00.0030.00619.22
8.1.280.0100.00725.92
8.1.270.0080.00024.66
8.1.260.0080.00026.35
8.1.250.0030.00528.09
8.1.240.0040.00423.97
8.1.230.0080.00319.00
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0040.00417.48
8.1.190.0080.00017.11
8.1.180.0050.00318.10
8.1.170.0030.00618.29
8.1.160.0070.00018.80
8.1.150.0050.00318.77
8.1.140.0000.00818.90
8.1.130.0000.00720.14
8.1.120.0050.00217.36
8.1.110.0070.00017.48
8.1.100.0000.00717.47
8.1.90.0030.00417.45
8.1.80.0050.00317.45
8.1.70.0000.01017.45
8.1.60.0040.00417.59
8.1.50.0000.00717.52
8.1.40.0060.00317.52
8.1.30.0030.00517.59
8.1.20.0000.01017.66
8.1.10.0000.01217.54
8.1.00.0040.00417.45
8.0.300.0000.00819.73
8.0.290.0040.00416.75
8.0.280.0070.00018.38
8.0.270.0000.00716.70
8.0.260.0000.00718.45
8.0.250.0070.00016.95
8.0.240.0060.00016.98
8.0.230.0040.00416.89
8.0.220.0070.00016.77
8.0.210.0020.00516.94
8.0.200.0060.00016.88
8.0.190.0040.00416.95
8.0.180.0000.00716.93
8.0.170.0000.00816.98
8.0.160.0000.00716.95
8.0.150.0040.00416.75
8.0.140.0040.00416.82
8.0.130.0000.00513.37
8.0.120.0040.00416.92
8.0.110.0030.00616.84
8.0.100.0050.00216.94
8.0.90.0070.00016.89
8.0.80.0090.00616.88
8.0.70.0000.00716.79
8.0.60.0080.00016.68
8.0.50.0040.00416.71
8.0.30.0080.00917.00
8.0.20.0090.01417.26
8.0.10.0070.00016.93
8.0.00.0090.01216.89
7.4.330.0020.00215.55
7.4.320.0000.00616.66
7.4.300.0000.00616.52
7.4.290.0040.00716.57
7.4.280.0070.00316.49
7.4.270.0000.00716.60
7.4.260.0030.00316.60
7.4.250.0070.00016.56
7.4.240.0050.00316.50
7.4.230.0000.00716.41
7.4.220.0040.00416.69
7.4.210.0070.01016.58
7.4.200.0000.00716.61
7.4.160.0080.00816.42
7.4.130.0030.01516.49
7.4.120.0110.01416.51
7.4.110.0030.01416.63
7.4.100.0090.01316.55
7.4.90.0170.00316.55
7.4.80.0120.00519.39
7.4.70.0100.00716.47
7.4.60.0130.00616.41
7.4.50.0060.00916.30
7.4.40.0100.00716.22
7.4.00.0030.01314.92
7.3.330.0030.00313.20
7.3.320.0030.00313.20
7.3.310.0040.00416.38
7.3.300.0030.00316.32
7.3.290.0030.00316.41
7.3.280.0120.00916.36
7.3.260.0110.00716.50
7.3.240.0080.00916.49
7.3.230.0090.01016.22
7.3.210.0120.00916.33
7.3.200.0040.01316.33
7.3.190.0120.00416.68
7.3.180.0050.01116.51
7.3.170.0160.00516.49
7.3.160.0170.00316.50
7.3.120.0070.01114.92
7.3.110.0110.00714.77
7.3.100.0120.00814.64
7.3.90.0070.00714.73
7.3.80.0030.01615.01
7.3.70.0030.01014.91
7.3.60.0080.00314.81
7.3.50.0080.01014.83
7.3.40.0060.01014.76
7.3.30.0100.00314.66
7.3.20.0130.00516.80
7.3.10.0100.00916.64
7.3.00.0060.01216.52
7.2.330.0040.01216.38
7.2.320.0100.01316.88
7.2.310.0030.01416.48
7.2.300.0070.01016.74
7.2.290.0120.00916.53
7.2.250.0140.00014.65
7.2.240.0120.00615.00
7.2.230.0140.00015.26
7.2.220.0120.00615.03
7.2.210.0100.00715.28
7.2.200.0030.01014.98
7.2.190.0120.00514.97
7.2.180.0080.01215.02
7.2.170.0080.00815.02
7.2.160.0060.00815.07
7.2.150.0080.00816.91
7.2.140.0070.00716.89
7.2.130.0050.00816.83
7.2.120.0060.00616.14
7.2.110.0130.00616.98
7.2.100.0110.00916.88
7.2.90.0150.00716.10
7.2.80.0090.00916.80
7.2.70.0090.01017.03
7.2.60.0120.00316.64
7.2.50.0070.01017.01
7.2.40.0090.01016.89
7.2.30.0050.00917.04
7.2.20.0090.00916.96
7.2.10.0070.00516.98
7.2.00.0050.00916.86
7.1.330.0110.00715.98
7.1.320.0030.01315.86
7.1.310.0110.00715.71
7.1.300.0030.00815.77
7.1.290.0070.00615.91
7.1.280.0080.01015.90
7.1.270.0060.00415.85
7.1.260.0200.00615.90
7.1.250.0100.00514.88
7.1.240.0060.00615.54
7.1.230.0030.01215.71
7.1.220.0090.00015.72
7.1.210.0080.00415.85
7.1.200.0080.00415.82
7.1.190.0070.00715.90
7.1.180.0030.00615.98
7.1.170.0030.00715.76
7.1.160.0070.01015.99
7.1.150.0040.01115.77
7.1.140.0040.00415.84
7.1.130.0000.01315.80
7.1.120.0030.01015.64
7.1.110.0000.01515.98
7.1.100.0100.00716.04
7.1.90.0030.01015.88
7.1.80.0070.00615.77
7.1.70.0080.00815.45
7.1.60.0060.00615.72
7.1.50.0090.00315.82
7.1.40.0000.01615.88
7.1.30.0080.00815.84
7.1.20.0000.01015.98
7.1.10.0060.00615.76
7.1.00.0040.01115.81

preferences:
67.12 ms | 401 KiB | 5 Q