3v4l.org

run code in 300+ PHP versions simultaneously
<?php ob_start(); // assume ob_level is set to 1 $GLOBALS['test'] = false; // is used too check if output is called before test is set to true function output_check() { if($GLOBALS['test'] === true) return; // this is called before test is set to true, there's no return echo "This will be echoed before 'duck': "; die(); // this will end the execution after echoeing duck echo "This will not be echoed, yet 'duck' will be."; } header_register_callback("output_check"); ob_end_clean(); echo "duck"; echo 'duck'; echo 'goose'; $GLOBALS['test'] = true; echo " and ducklings";

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.5.10.0120.00516.74
8.5.00.0140.00819.91
8.4.150.0010.00114.05
8.4.140.0100.01217.61
8.4.130.0100.00620.40
8.4.120.0100.00217.64
8.4.110.0120.00917.95
8.4.100.0140.00617.79
8.4.90.0100.01120.55
8.4.80.0100.01018.81
8.4.70.0070.00518.70
8.4.60.0120.00919.16
8.4.50.0050.00517.78
8.4.40.0090.01017.83
8.4.30.0130.00620.47
8.4.20.0070.00719.72
8.4.10.0080.00319.62
8.3.280.0090.01218.34
8.3.270.0130.00616.58
8.3.260.0080.00316.73
8.3.250.0140.00516.74
8.3.240.0060.00316.66
8.3.230.0130.00616.63
8.3.220.0070.00118.89
8.3.210.0030.00418.95
8.3.200.0060.00316.61
8.3.190.0120.00717.02
8.3.180.0110.00816.54
8.3.170.0040.00419.01
8.3.160.0100.01018.38
8.3.150.0180.00020.71
8.3.140.0070.01116.44
8.3.130.0030.00616.75
8.3.120.0080.00018.95
8.3.110.0090.00620.94
8.3.100.0090.00024.06
8.3.90.0040.00426.77
8.3.80.0060.00316.61
8.3.70.0070.00716.59
8.3.60.0040.01118.55
8.3.50.0120.00620.09
8.3.40.0120.00320.42
8.3.30.0070.01118.81
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0000.00726.16
8.2.290.0120.00716.63
8.2.280.0110.00718.12
8.2.270.0000.00817.27
8.2.260.0110.00418.84
8.2.250.0000.00816.84
8.2.240.0080.00016.97
8.2.230.0030.00622.58
8.2.220.0080.00037.54
8.2.210.0030.00526.77
8.2.200.0030.00616.63
8.2.190.0120.00318.29
8.2.180.0110.00825.92
8.2.170.0140.00319.00
8.2.160.0140.00422.96
8.2.150.0040.00425.66
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0040.00426.16
8.2.110.0060.00322.13
8.2.100.0030.00919.60
8.2.90.0000.00817.63
8.2.80.0040.00418.86
8.2.70.0030.00617.63
8.2.60.0040.00417.80
8.2.50.0040.00418.07
8.2.40.0040.00419.95
8.2.30.0050.00218.02
8.2.20.0050.00318.11
8.2.10.0030.00720.76
8.2.00.0080.00019.31
8.1.330.0120.00716.47
8.1.320.0090.01018.10
8.1.310.0060.01218.71
8.1.300.0050.00316.33
8.1.290.0040.00418.88
8.1.280.0110.00325.92
8.1.270.0080.00023.99
8.1.260.0050.00326.35
8.1.250.0070.00028.09
8.1.240.0030.00620.60
8.1.230.0090.00317.73
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0030.00617.36
8.1.190.0060.00317.23
8.1.180.0040.00418.10
8.1.170.0000.00818.64
8.1.160.0070.00018.78
8.1.150.0040.00418.70
8.1.140.0000.00718.95
8.1.130.0090.00023.80
8.1.120.0070.00017.35
8.1.110.0040.00417.46
8.1.100.0000.00717.38
8.1.90.0030.00517.51
8.1.80.0090.00017.43
8.1.70.0000.00717.45
8.1.60.0050.00317.63
8.1.50.0040.00417.52
8.1.40.0050.00317.57
8.1.30.0040.00417.68
8.1.20.0040.00417.68
8.1.10.0060.00317.41
8.1.00.0040.00817.46
8.0.300.0070.00018.77
8.0.290.0030.00516.58
8.0.280.0000.00718.41
8.0.270.0040.00418.08
8.0.260.0050.00218.50
8.0.250.0000.00816.95
8.0.240.0000.00717.01
8.0.230.0040.00416.92
8.0.220.0000.00716.89
8.0.210.0050.00316.77
8.0.200.0030.00616.80
8.0.190.0030.00516.83
8.0.180.0070.00016.90
8.0.170.0040.00416.93
8.0.160.0040.00416.89
8.0.150.0030.00516.84
8.0.140.0000.00716.86
8.0.130.0030.00313.30
8.0.120.0060.00316.91
8.0.110.0070.00016.83
8.0.100.0000.00716.77
8.0.90.0040.00416.85
8.0.80.0070.00016.86
8.0.70.0030.00516.91
8.0.60.0040.00416.83
8.0.50.0030.00316.85
8.0.30.0050.00216.80
8.0.20.0000.00916.84
8.0.10.0080.00017.12
8.0.00.0080.00016.97
7.4.330.0030.00316.69
7.4.320.0030.00316.44
7.4.300.0000.00716.61
7.4.290.0030.00916.51
7.4.280.0030.00516.41
7.4.270.0040.00416.46
7.4.260.0050.00013.29
7.4.250.0030.00316.47
7.4.240.0000.00716.61
7.4.230.0000.00716.50
7.4.220.0040.00416.39
7.4.210.0040.00416.51
7.4.200.0070.00016.41
7.4.190.0000.00616.76
7.4.180.0000.00716.56
7.4.160.0040.00416.78
7.4.150.0070.00016.51
7.4.140.0040.00416.47
7.4.130.0000.00716.26
7.4.120.0070.00016.50
7.4.110.0000.00816.56
7.4.100.0000.00716.71
7.4.90.0000.00716.42
7.4.80.0040.00416.37
7.4.70.0040.00416.29
7.4.60.0030.00316.38
7.4.50.0030.00316.50
7.4.40.0060.00016.38
7.4.30.0060.00016.46
7.4.20.0040.00416.57
7.4.10.0030.00316.43
7.4.00.0000.00716.62
7.3.330.0000.00716.40
7.3.320.0030.00313.20
7.3.310.0050.00216.38
7.3.300.0000.00716.38
7.3.290.0030.00316.24
7.3.280.0000.00716.28
7.3.270.0070.00016.22
7.3.260.0000.00816.34
7.3.250.0040.00416.23
7.3.240.0030.00316.38
7.3.230.0020.00516.38
7.3.220.0060.00016.32
7.3.210.0030.00616.27
7.3.200.0000.00816.32
7.3.190.0030.00616.14
7.3.180.0000.00916.29
7.3.170.0030.00316.32
7.3.160.0030.00316.31
7.3.150.0000.00616.18
7.3.140.0030.00316.22
7.3.130.0030.00316.34
7.3.120.0020.00516.13
7.3.110.0080.00016.20
7.3.100.0040.00416.11
7.3.90.0000.00716.38
7.3.80.0040.00416.28
7.3.70.0040.00416.37
7.3.60.0070.00016.30
7.3.50.0030.00316.26
7.3.40.0030.00316.44
7.3.30.0040.00416.39
7.3.20.0040.00416.44
7.3.10.0000.00816.37
7.3.00.0040.00416.33

preferences:
35.25 ms | 403 KiB | 5 Q