3v4l.org

run code in 300+ PHP versions simultaneously
<?php function callback($buffer, $status) { return "callback $buffer"; } ob_start( 'callback', 0, PHP_OUTPUT_HANDLER_FLUSHABLE | PHP_OUTPUT_HANDLER_REMOVABLE); echo 'test'; echo ob_get_clean(); //this should not work as no CLEANABLE flag was set on ob_start //ob_end_clean is ran as well //ob_clean -> failed to delete buffer notice echo "\n".ob_get_level();

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.1.130.0050.00318.86
8.1.120.0040.00417.35
8.1.110.0040.00417.21
8.1.100.0070.00017.28
8.1.90.0030.00317.31
8.1.80.0040.00417.36
8.1.70.0000.00717.29
8.1.60.0040.00417.47
8.1.50.0040.00417.43
8.1.40.0040.00417.42
8.1.30.0060.00317.41
8.1.20.0000.00817.51
8.1.10.0070.00017.38
8.1.00.0040.00717.39
8.0.260.0080.00017.12
8.0.250.0000.00716.95
8.0.240.0040.00416.93
8.0.230.0000.00716.88
8.0.220.0050.00216.70
8.0.210.0030.00316.85
8.0.200.0030.00316.89
8.0.190.0070.00016.85
8.0.180.0070.00016.75
8.0.170.0000.00716.78
8.0.160.0050.00316.85
8.0.150.0000.00716.83
8.0.140.0000.00716.78
8.0.130.0050.00013.29
8.0.120.0050.00316.81
8.0.110.0050.00316.60
8.0.100.0030.00316.71
8.0.90.0050.00316.76
8.0.80.0130.00916.81
8.0.70.0080.00016.65
8.0.60.0000.00716.78
8.0.50.0070.00016.63
8.0.30.0060.01017.12
8.0.20.0100.00817.40
8.0.10.0030.00516.97
8.0.00.0130.01016.58
7.4.330.0000.00515.55
7.4.320.0030.00616.51
7.4.300.0000.00716.37
7.4.290.0060.00316.42
7.4.280.0040.00416.36
7.4.270.0000.00716.37
7.4.260.0050.00216.50
7.4.250.0070.00016.46
7.4.240.0030.00516.31
7.4.230.0030.00316.26
7.4.220.0090.01616.54
7.4.210.0130.00616.44
7.4.200.0050.00216.45
7.4.160.0120.00516.49
7.4.150.0060.01317.40
7.4.140.0120.00617.86
7.4.130.0090.01116.40
7.4.120.0070.01116.45
7.4.110.0140.00316.30
7.4.100.0100.00716.47
7.4.90.0120.00616.52
7.4.80.0160.00019.39
7.4.70.0130.00616.44
7.4.60.0120.00416.39
7.4.50.0030.01016.42
7.4.40.0090.00616.53
7.4.30.0110.01416.46
7.4.00.0080.00715.09
7.3.330.0000.00513.29
7.3.320.0000.00613.36
7.3.310.0000.00716.34
7.3.300.0030.00316.17
7.3.290.0070.00016.36
7.3.280.0100.00916.27
7.3.270.0070.01017.40
7.3.260.0120.00716.48
7.3.250.0150.00316.31
7.3.240.0110.00616.56
7.3.230.0090.00916.40
7.3.210.0060.01616.63
7.3.200.0090.00916.49
7.3.190.0100.00616.54
7.3.180.0030.01216.53
7.3.170.0070.01516.24
7.3.160.0100.00616.43
7.2.330.0100.01016.57
7.2.320.0100.00716.32
7.2.310.0060.01116.45
7.2.300.0120.01116.66
7.2.290.0040.01316.75
7.2.60.0060.00616.83
7.2.50.0030.01316.79
7.1.200.0030.01015.42
7.1.70.0040.00417.11
7.1.60.0060.00617.13
7.1.30.0200.01034.28
7.1.20.0230.00734.30
7.1.10.0100.00016.46
7.1.00.0030.01016.72
7.0.200.0100.01316.79
7.0.170.0000.01016.16
7.0.160.0030.01016.30
7.0.150.0070.00316.16
7.0.140.0070.00316.20
7.0.130.0030.01016.54
7.0.120.0030.00716.59
7.0.110.0100.00716.24
7.0.100.0030.01316.37
7.0.90.0000.01316.18
7.0.80.0000.01716.25
7.0.70.0030.00715.94
7.0.60.0030.01016.15
7.0.50.0030.01016.07
7.0.40.0100.00316.41
7.0.30.0070.00716.44
7.0.20.0000.01316.38
7.0.10.0100.00316.48
7.0.00.0000.01316.36
5.6.300.0200.05320.62
5.6.290.0070.06020.80
5.6.280.0100.05720.92
5.6.270.0100.06320.93
5.6.260.0100.05720.88
5.6.250.0100.05720.90
5.6.240.0070.06320.79
5.6.230.0200.07720.68
5.6.220.0030.08320.72
5.6.210.0130.07020.86
5.6.200.0170.08020.60
5.6.190.0030.08720.83
5.6.180.0070.08720.69
5.6.170.0100.05320.69
5.6.160.0230.06020.66
5.6.150.0130.07720.76
5.6.140.0130.06020.75
5.6.130.0100.05320.63
5.6.120.0030.06320.64
5.6.110.0130.06020.75
5.6.100.0200.07020.75
5.6.90.0070.08320.63
5.6.80.0070.06020.30
5.6.70.0070.05720.00
5.6.60.0030.06020.29
5.6.50.0100.07720.02
5.6.40.0070.05720.00
5.6.30.0170.05720.26
5.6.20.0030.09020.27
5.6.10.0170.07020.25
5.6.00.0130.05720.16
5.5.380.0100.07717.36
5.5.370.0100.05317.41
5.5.360.0200.07317.43
5.5.350.0070.08317.34
5.5.340.0070.08317.85
5.5.330.0100.07317.88
5.5.320.0030.07017.71
5.5.310.0000.07017.86
5.5.300.0030.06017.80
5.5.290.0070.05717.64
5.5.280.0070.06017.83
5.5.270.0230.04717.66
5.5.260.0070.07017.75
5.5.250.0170.06717.90
5.5.240.0100.05317.02
5.5.230.0070.07717.11
5.5.220.0130.06017.22
5.5.210.0130.06017.14
5.5.200.0100.05317.41
5.5.190.0000.06717.41
5.5.180.0200.06717.23
5.5.160.0000.06317.41
5.5.150.0130.04717.00
5.5.140.0030.05717.21
5.5.130.0100.05717.21
5.5.120.0130.06017.44
5.5.110.0230.05317.43
5.5.100.0100.06316.92
5.5.90.0070.05717.13
5.5.80.0130.05317.14
5.5.70.0130.04717.12
5.5.60.0100.05016.91
5.5.50.0170.06017.11
5.5.40.0100.06016.98
5.5.30.0070.05317.07
5.5.20.0170.05016.97
5.5.10.0000.06017.32
5.5.00.0070.08017.09
5.4.450.0100.06018.96
5.4.440.0170.05319.31
5.4.430.0130.08019.27
5.4.420.0130.05319.07
5.4.410.0100.06019.16
5.4.400.0100.06018.93
5.4.390.0030.06018.78
5.4.380.0200.06019.08
5.4.370.0100.05318.79
5.4.360.0170.06319.01
5.4.350.0270.04718.89
5.4.340.0200.06318.88
5.4.320.0070.05718.63
5.4.310.0100.06318.72
5.4.300.0130.05718.97
5.4.290.0030.05718.94
5.4.280.0300.05018.88
5.4.270.0130.06718.76
5.4.260.0100.07318.92
5.4.250.0230.05718.97
5.4.240.0170.04718.74
5.4.230.0100.05019.07
5.4.220.0030.06318.98
5.4.210.0070.07718.88
5.4.200.0000.05718.69
5.4.190.0130.04718.93
5.4.180.0070.05718.74
5.4.170.0100.05718.99
5.4.160.0100.06018.95
5.4.150.0130.05318.92
5.4.140.0070.05316.32
5.4.130.0100.04316.60
5.4.120.0030.05016.41
5.4.110.0000.05716.44
5.4.100.0070.05016.54
5.4.90.0000.05716.37
5.4.80.0100.05316.46
5.4.70.0070.04716.31
5.4.60.0070.07016.33
5.4.50.0100.04316.56
5.4.40.0170.05316.36
5.4.30.0030.05316.30
5.4.20.0070.04716.46
5.4.10.0070.05316.42
5.4.00.0100.05016.03
5.3.290.0200.05314.88
5.3.280.0100.05014.66
5.3.270.0170.05014.82
5.3.260.0070.06314.43
5.3.250.0000.05714.43
5.3.240.0130.04314.82
5.3.230.0030.05314.82
5.3.220.0130.05014.39
5.3.210.0070.05314.79
5.3.200.0000.06014.54
5.3.190.0170.04014.55
5.3.180.0030.05314.65
5.3.170.0030.05014.64
5.3.160.0070.06014.58
5.3.150.0000.05714.74
5.3.140.0100.05314.52
5.3.130.0030.06014.55
5.3.120.0100.06014.71
5.3.110.0000.06014.54
5.3.100.0100.05314.21
5.3.90.0130.05314.20
5.3.80.0030.05314.03
5.3.70.0070.05014.11
5.3.60.0030.05713.99
5.3.50.0130.06014.04
5.3.40.0100.06714.12
5.3.30.0100.04713.89
5.3.20.0030.05013.77
5.3.10.0100.04313.87
5.3.00.0030.07313.73
5.2.170.0070.05311.22
5.2.160.0070.04011.21
5.2.150.0170.04311.14
5.2.140.0070.04011.37
5.2.130.0070.04011.07
5.2.120.0000.04311.28
5.2.110.0030.05711.18
5.2.100.0130.03011.17
5.2.90.0030.04011.05
5.2.80.0100.05311.15
5.2.70.0070.04011.06
5.2.60.0000.04311.14
5.2.50.0070.05311.10
5.2.40.0070.04010.99
5.2.30.0000.05010.93
5.2.20.0070.04310.93
5.2.10.0070.04010.85
5.2.00.0070.04010.80
5.1.60.0100.0339.96
5.1.50.0030.03710.09
5.1.40.0070.0379.95
5.1.30.0000.05010.40
5.1.20.0100.04310.32
5.1.10.0070.0479.90
5.1.00.0100.0409.91
5.0.50.0070.0338.54
5.0.40.0070.0278.54
5.0.30.0100.0408.54
5.0.20.0030.0278.54
5.0.10.0070.0338.54
5.0.00.0070.0438.54
4.4.90.0070.0178.54
4.4.80.0030.0208.54
4.4.70.0030.0238.54
4.4.60.0000.0238.54
4.4.50.0070.0238.54
4.4.40.0000.0378.54
4.4.30.0070.0278.54
4.4.20.0030.0208.54
4.4.10.0030.0278.54
4.4.00.0000.0408.54
4.3.110.0100.0178.54
4.3.100.0000.0278.54
4.3.90.0000.0238.54
4.3.80.0070.0308.54
4.3.70.0030.0208.54
4.3.60.0030.0208.54
4.3.50.0100.0178.54
4.3.40.0000.0438.54
4.3.30.0030.0208.54
4.3.20.0030.0208.54
4.3.10.0030.0208.54
4.3.00.0070.0178.54

preferences:
66.91 ms | 406 KiB | 5 Q