3v4l.org

run code in 300+ PHP versions simultaneously
<?php header("Content-type: multipart/x-mixed-replace;boundary=endofsection"); print "--endofsection\n"; $pmt = array("-", "\\", "|", "/" ); for( $i = 0; $i <10;$i ++ ) { sleep(1); print "Content-type: text/plain\n\n"; print "Part $i ".$pmt[$i % 4]; print "--endofsection\n"; ob_flush(); //强制将缓存区的内容输出 flush(); //强制将缓冲区的内容发送给客户端 } print "Content-type: text/plain\n\n"; print "The end\n"; print "–endofsection–\n";

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.0150.00418.31
8.3.50.0110.01021.86
8.3.40.0120.00318.83
8.3.30.0130.00718.88
8.3.20.0050.00320.13
8.3.10.0080.00021.95
8.3.00.0040.00422.43
8.2.180.0170.00316.88
8.2.170.0070.00722.96
8.2.160.0110.00320.94
8.2.150.0060.00324.18
8.2.140.0090.00024.66
8.2.130.0030.00526.16
8.2.120.0070.00219.48
8.2.110.0100.00022.07
8.2.100.0090.00319.57
8.2.90.0030.00519.35
8.2.80.0040.00418.16
8.2.70.0070.00717.62
8.2.60.0090.00317.93
8.2.50.0050.00318.07
8.2.40.0070.00018.34
8.2.30.0000.00718.18
8.2.20.0030.00517.71
8.2.10.0000.00717.66
8.2.00.0040.00417.75
8.1.280.0150.00025.92
8.1.270.0000.00822.19
8.1.260.0000.00826.35
8.1.250.0050.00228.09
8.1.240.0090.00023.86
8.1.230.0100.00019.14
8.1.220.0040.00417.74
8.1.210.0090.00018.77
8.1.200.0050.00517.23
8.1.190.0050.00317.53
8.1.180.0060.00318.57
8.1.170.0030.00618.46
8.1.160.0060.00321.98
8.1.150.0070.00018.57
8.1.140.0000.00717.50
8.1.130.0040.00417.92
8.1.120.0050.00217.53
8.1.110.0030.00517.38
8.1.100.0040.00417.40
8.1.90.0030.00517.44
8.1.80.0030.00417.39
8.1.70.0050.00217.51
8.1.60.0040.00417.66
8.1.50.0050.00317.47
8.1.40.0000.00817.47
8.1.30.0030.00517.61
8.1.20.0040.00417.57
8.1.10.0070.00017.57
8.1.00.0070.00017.64
8.0.300.0050.00318.77
8.0.290.0050.00216.92
8.0.280.0030.00518.37
8.0.270.0040.00417.20
8.0.260.0070.00016.82
8.0.250.0080.00016.89
8.0.240.0040.00416.96
8.0.230.0070.00016.88
8.0.220.0030.00316.88
8.0.210.0020.00516.70
8.0.200.0040.00416.93
8.0.190.0000.00716.94
8.0.180.0070.00016.92
8.0.170.0060.00316.79
8.0.160.0000.00716.91
8.0.150.0050.00316.89
8.0.140.0030.00316.75
8.0.130.0060.00013.38
8.0.120.0040.00416.74
8.0.110.0030.00516.72
8.0.100.0050.00316.86
8.0.90.0040.00416.85
8.0.80.0040.01116.94
8.0.70.0040.00316.69
8.0.60.0000.00716.73
8.0.50.0040.00416.80
8.0.30.0110.00916.98
8.0.20.0090.00917.40
8.0.10.0040.00416.91
8.0.00.0120.00916.59
7.4.330.0030.00315.00
7.4.320.0000.00716.41
7.4.300.0030.00316.31
7.4.290.0000.00716.24
7.4.280.0000.00716.37
7.4.270.0020.00516.53
7.4.260.0070.00016.40
7.4.250.0060.00316.30
7.4.240.0000.00716.39
7.4.230.0000.00716.23
7.4.220.0140.00316.36
7.4.210.0070.00716.36
7.4.200.0040.00416.12
7.4.190.0000.00816.38
7.4.160.0000.01416.48
7.4.150.0050.01317.40
7.4.140.0110.00817.86
7.4.130.0090.00816.42
7.4.120.0100.00816.38
7.4.110.0120.00416.56
7.4.100.0070.01116.51
7.4.90.0040.01316.60
7.4.80.0150.00919.39
7.4.70.0080.00816.66
7.4.60.0060.01416.39
7.4.50.0030.00616.29
7.4.40.0000.01122.77
7.4.30.0040.01216.42
7.4.00.0060.01114.65
7.3.330.0060.00013.25
7.3.320.0050.00013.11
7.3.310.0030.00516.27
7.3.300.0040.00416.20
7.3.290.0130.00716.32
7.3.280.0060.00916.34
7.3.270.0110.01117.40
7.3.260.0100.01016.34
7.3.250.0110.00816.30
7.3.240.0160.00716.33
7.3.230.0130.01016.48
7.3.210.0040.01316.36
7.3.200.0040.01819.39
7.3.190.0130.00616.24
7.3.180.0110.00716.43
7.3.170.0080.00816.39
7.3.160.0040.01116.36
7.3.120.0040.01214.98
7.2.330.0070.01016.68
7.2.320.0130.00516.71
7.2.310.0080.00816.54
7.2.300.0050.01016.73
7.2.290.0130.00316.69
7.2.80.0070.00416.63
7.2.60.0040.00716.73
7.2.00.0040.00819.39
7.1.200.0000.01315.94
7.1.100.0060.00318.36
7.1.70.0030.00517.25
7.1.60.0070.01719.82
7.1.50.0090.00617.15
7.1.00.0030.07722.23
7.0.200.0070.00016.64
7.0.140.0000.07721.95
7.0.60.0070.08719.93
7.0.50.0030.04717.74
7.0.40.0100.08019.75
7.0.30.0530.05319.92
7.0.20.0230.05019.85
7.0.10.0200.06019.94
7.0.00.0070.08719.80
5.6.210.0030.04320.60
5.6.200.0030.08718.16
5.6.190.0170.04020.15
5.6.180.0330.05320.31
5.6.170.0270.03320.36
5.6.160.0100.04720.31
5.6.150.0130.07318.13
5.6.140.0100.07317.92
5.6.130.0130.08018.15
5.6.120.0130.08021.02
5.6.110.0130.08020.96
5.6.100.0130.07321.00
5.6.90.0130.08321.10
5.6.80.0070.03720.53
5.6.70.4530.03720.27
5.5.350.0100.05720.48
5.5.340.0200.05320.89
5.5.330.0130.08020.71
5.5.320.0030.07320.86
5.5.310.0130.05720.85
5.5.300.0330.06320.93
5.5.290.0130.06320.93
5.5.280.0130.05720.94
5.5.270.0070.06320.77
5.5.260.0070.06020.92
5.5.250.0100.06020.73
5.5.240.0100.05320.33
5.4.450.0200.04319.18
5.4.440.0230.07019.16
5.4.430.0100.07019.29
5.4.420.0130.05719.30
5.4.410.0200.06319.25
5.4.400.0100.05318.98
5.4.390.0130.05018.84
5.4.380.0230.05718.85
5.4.370.0080.05018.82
5.4.360.0100.04318.82
5.4.350.0120.05515.47
5.4.340.0070.04815.52
5.4.320.0060.05415.75
5.4.310.0080.04415.70
5.4.300.0160.03915.80
5.4.290.0100.04215.72
5.4.280.0100.05115.68
5.4.270.0090.05615.68
5.4.260.0100.05615.63
5.4.250.0100.05315.58
5.4.240.0050.05815.68
5.4.230.0080.04715.58
5.4.220.0070.05515.71
5.4.210.0120.04215.54
5.4.200.0100.05815.71
5.4.190.0110.05515.64
5.4.180.0060.04715.71
5.4.170.0110.04414.50
5.4.160.0180.04014.56
5.4.150.0120.04514.55
5.4.140.0150.04213.46
5.4.130.0110.04313.40
5.4.120.0120.04213.40
5.4.110.0070.04813.42
5.4.100.0100.04413.35
5.4.90.0110.04313.41
5.4.80.0150.04213.35
5.4.70.0110.04013.41
5.4.60.0120.04613.43
5.4.50.0150.03613.41
5.4.40.0130.04813.39
5.4.30.0150.03813.40
5.4.20.0130.04913.36
5.4.10.0090.04313.36
5.4.00.0090.04512.84
5.3.290.0110.06113.62
5.3.280.0080.04313.52
5.3.270.0130.05213.26
5.3.260.0220.05813.26
5.3.250.0160.04713.26
5.3.240.0130.04313.30
5.3.230.0130.04613.25
5.3.220.0130.04513.24
5.3.210.0120.04813.22
5.3.200.0130.04513.22
5.3.190.0190.04513.22
5.3.180.0090.04813.23
5.3.170.0120.04313.22
5.3.160.0120.04413.22
5.3.150.0120.04913.22
5.3.140.0100.05613.22
5.3.130.0100.05613.17
5.3.120.0110.04813.17
5.3.110.0120.04613.21
5.3.100.0140.04312.69
5.3.90.0130.05012.61
5.3.80.0100.04612.65
5.3.70.0120.04312.60
5.3.60.0180.06712.59
5.3.50.0100.04712.56
5.3.40.0110.04312.52
5.3.30.0140.04612.47
5.3.20.0160.04612.28
5.3.10.0110.04112.18

preferences:
65.22 ms | 401 KiB | 5 Q