3v4l.org

run code in 300+ PHP versions simultaneously
<?php // without OB echo 'before_ob' . PHP_EOL; ob_start(); // first level begins // this line will be in $second echo 'second_ob' . PHP_EOL; ob_start(); // second level begins // these 2 lines will be in $first echo 'third_ob' . PHP_EOL; echo '------' . PHP_EOL; $first = ob_get_clean() . 1; // this line will be in second // but w/o previous 2 lines echo '------' . PHP_EOL; $second = ob_get_clean() . 2; // this will output $first consisting of 2 lines. // and $second without them. var_dump($second,$first);

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.0120.00916.63
8.3.50.0140.00016.14
8.3.40.0120.00318.85
8.3.30.0070.00718.53
8.3.20.0040.00420.21
8.3.10.0040.00421.65
8.3.00.0030.00619.20
8.2.180.0100.00316.38
8.2.170.0130.00322.96
8.2.160.0070.01020.53
8.2.150.0090.00024.18
8.2.140.0070.00024.66
8.2.130.0040.00421.08
8.2.120.0000.00926.35
8.2.110.0090.00020.57
8.2.100.0080.00317.78
8.2.90.0060.00619.02
8.2.80.0070.00018.03
8.2.70.0040.00417.62
8.2.60.0040.00417.93
8.2.50.0080.00018.10
8.2.40.0080.00020.30
8.2.30.0080.00020.96
8.2.20.0040.00417.99
8.2.10.0040.00418.00
8.2.00.0000.00717.93
8.1.280.0040.01125.92
8.1.270.0080.00023.83
8.1.260.0040.00426.35
8.1.250.0040.01128.09
8.1.240.0030.00623.97
8.1.230.0110.00017.76
8.1.220.0000.00917.74
8.1.210.0040.00418.77
8.1.200.0060.00317.23
8.1.190.0060.00317.22
8.1.180.0070.00318.10
8.1.170.0000.00820.31
8.1.160.0020.00518.88
8.1.150.0040.00418.94
8.1.140.0040.00419.51
8.1.130.0000.00718.78
8.1.120.0070.00017.47
8.1.110.0080.00017.47
8.1.100.0050.00317.38
8.1.90.0040.00417.46
8.1.80.0070.00017.31
8.1.70.0000.00717.42
8.1.60.0030.00617.58
8.1.50.0040.00417.53
8.1.40.0040.00417.45
8.1.30.0030.00717.58
8.1.20.0030.00617.67
8.1.10.0040.00417.51
8.1.00.0000.00717.33
8.0.300.0030.00718.77
8.0.290.0070.00016.63
8.0.280.0000.00718.39
8.0.270.0040.00417.13
8.0.260.0050.00216.77
8.0.250.0000.00617.02
8.0.240.0040.00416.84
8.0.230.0040.00316.88
8.0.220.0000.00716.85
8.0.210.0080.00016.93
8.0.200.0030.00316.98
8.0.190.0070.00316.88
8.0.180.0000.00716.89
8.0.170.0030.00316.91
8.0.160.0000.00816.90
8.0.150.0040.00416.72
8.0.140.0000.00816.82
8.0.130.0030.00313.29
8.0.120.0050.00316.77
8.0.110.0040.00416.71
8.0.100.0000.00716.95
8.0.90.0020.00516.80
8.0.80.0120.00616.95
8.0.70.0040.00416.86
8.0.60.0000.00816.70
8.0.50.0000.00716.66
8.0.30.0050.01117.04
8.0.20.0070.01117.40
8.0.10.0080.00016.99
8.0.00.0080.01016.68
7.4.330.0000.00515.55
7.4.320.0040.00416.35
7.4.300.0030.00316.30
7.4.290.0040.00716.41
7.4.280.0040.00416.48
7.4.270.0000.00816.46
7.4.260.0070.00316.46
7.4.250.0040.00416.41
7.4.240.0030.00316.58
7.4.230.0020.00516.52
7.4.220.0080.00916.43
7.4.210.0080.00616.61
7.4.200.0000.00816.53
7.4.160.0050.01216.32
7.4.150.0110.00717.40
7.4.140.0160.00617.86
7.4.130.0100.00716.48
7.4.120.0100.00716.52
7.4.110.0100.00716.39
7.4.100.0150.00416.49
7.4.90.0170.00016.41
7.4.80.0090.00919.39
7.4.70.0030.01316.52
7.4.60.0060.01216.32
7.4.50.0040.01116.27
7.4.40.0110.00516.41
7.4.30.0070.01016.45
7.4.00.0110.00714.95
7.3.330.0000.00613.00
7.3.320.0060.00013.05
7.3.310.0030.00316.17
7.3.300.0030.00316.19
7.3.290.0080.00616.19
7.3.280.0070.00916.19
7.3.270.0060.01117.40
7.3.260.0080.00916.35
7.3.250.0080.01316.50
7.3.240.0080.01116.38
7.3.230.0080.00916.39
7.3.210.0080.00816.16
7.3.200.0190.00416.48
7.3.190.0040.01316.26
7.3.180.0090.00616.20
7.3.170.0090.00616.33
7.3.160.0100.00716.26
7.3.120.0110.00414.82
7.3.110.0000.01414.67
7.3.100.0070.00714.71
7.3.90.0040.01114.67
7.3.80.0030.01015.02
7.3.70.0060.00814.66
7.3.60.0070.00014.93
7.3.50.0100.00314.92
7.3.40.0130.00314.79
7.3.30.0080.00314.61
7.3.20.0110.00016.59
7.3.10.0030.01316.53
7.3.00.0100.00616.48
7.2.330.0000.01816.65
7.2.320.0070.01016.55
7.2.310.0040.01516.41
7.2.300.0070.01116.56
7.2.290.0050.01416.67
7.2.240.0060.00315.19
7.2.230.0070.00714.69
7.2.220.0110.00014.84
7.2.210.0080.00815.00
7.2.200.0030.01014.89
7.2.190.0070.00714.60
7.2.180.0070.00714.89
7.2.170.0120.00314.67
7.2.160.0130.00314.95
7.2.150.0040.01116.70
7.2.140.0030.00916.63
7.2.130.0000.00916.86
7.2.120.0130.00016.86
7.2.110.0070.00716.84
7.2.100.0030.01216.85
7.2.90.0080.00316.82
7.2.80.0080.00416.82
7.2.70.0030.01216.66
7.2.60.0050.00816.59
7.2.50.0090.00617.05
7.2.40.0030.01316.86
7.2.30.0060.00616.85
7.2.20.0030.01316.83
7.2.10.0090.00616.71
7.2.00.0040.00717.98
7.1.330.0070.00715.54
7.1.320.0040.00715.94
7.1.310.0080.00415.72
7.1.300.0060.00915.27
7.1.290.0000.01015.82
7.1.280.0060.00915.66
7.1.270.0070.01015.64
7.1.260.0030.00915.70
7.1.250.0000.00815.52
7.1.200.0070.00315.58
7.1.100.0030.00718.09
7.1.70.0070.00717.01
7.1.60.0150.01534.72
7.1.50.0200.00334.65
7.1.40.0100.01434.20
7.1.30.0250.00034.51
7.1.20.0140.01034.46
7.1.10.0030.01016.57
7.1.00.0100.00316.73
7.0.200.0060.00616.55
7.0.190.0000.01116.65
7.0.180.0000.01216.14
7.0.170.0000.01116.21
7.0.160.0000.01116.06
7.0.150.0050.00816.10
7.0.140.0060.00616.13
7.0.130.0030.00916.63
7.0.120.0060.00616.54
7.0.110.0060.00616.41
7.0.100.0000.01116.02
7.0.90.0040.00916.18
7.0.80.0030.01216.26
7.0.70.0090.00416.29
7.0.60.0030.00916.11
7.0.50.0060.00616.26
7.0.40.0060.00616.43
7.0.30.0000.01216.39
7.0.20.0040.01216.53
7.0.10.0000.01116.37
7.0.00.0000.01216.36

preferences:
35.91 ms | 401 KiB | 5 Q