3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = '/headers/'; $h = '/imglib/'; $data = array(); for ($i = 0; $i < 5000; ++$i) { $data[] = $h; } foreach ($data as $d) { strncmp('/headers/', $d, 9); }

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.0040.01116.75
8.3.50.0230.00722.06
8.3.40.0090.00618.67
8.3.30.0030.01019.09
8.3.20.0080.00020.14
8.3.10.0050.00323.51
8.3.00.0040.00419.25
8.2.180.0090.00618.16
8.2.170.0140.00722.96
8.2.160.0070.01120.39
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0050.00226.16
8.2.120.0080.00022.08
8.2.110.0060.00322.14
8.2.100.0060.00618.03
8.2.90.0030.00519.17
8.2.80.0040.00418.05
8.2.70.0030.00517.75
8.2.60.0030.00918.05
8.2.50.0050.00318.07
8.2.40.0030.00619.95
8.2.30.0080.00018.20
8.2.20.0040.00417.72
8.2.10.0040.00418.15
8.2.00.0030.00617.64
8.1.280.0090.00925.92
8.1.270.0000.00823.97
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0000.00923.82
8.1.230.0060.00619.27
8.1.220.0000.00817.80
8.1.210.0000.00818.77
8.1.200.0000.01117.48
8.1.190.0000.00817.66
8.1.180.0060.00318.10
8.1.170.0040.00418.64
8.1.160.0040.00422.15
8.1.150.0000.00918.81
8.1.140.0040.00417.63
8.1.130.0030.00317.90
8.1.120.0040.00417.55
8.1.110.0040.00717.52
8.1.100.0000.01017.64
8.1.90.0040.00417.55
8.1.80.0000.00817.53
8.1.70.0000.00717.62
8.1.60.0000.00817.69
8.1.50.0040.00417.59
8.1.40.0040.00417.64
8.1.30.0040.00417.72
8.1.20.0080.00017.82
8.1.10.0080.00017.70
8.1.00.0000.00817.49
8.0.300.0040.00419.15
8.0.290.0000.00717.30
8.0.280.0040.00418.62
8.0.270.0040.00417.44
8.0.260.0070.00017.36
8.0.250.0080.00017.03
8.0.240.0000.00917.06
8.0.230.0000.00817.02
8.0.220.0050.00316.96
8.0.210.0070.00017.07
8.0.200.0040.00417.19
8.0.190.0040.00417.16
8.0.180.0040.00417.06
8.0.170.0040.00417.00
8.0.160.0040.00417.05
8.0.150.0040.00417.13
8.0.140.0040.00416.86
8.0.130.0000.00613.52
8.0.120.0000.00817.05
8.0.110.0000.00716.96
8.0.100.0000.00816.95
8.0.90.0040.00417.13
8.0.80.0090.00617.05
8.0.70.0080.00017.08
8.0.60.0000.00716.97
8.0.50.0000.00816.97
8.0.30.0140.00517.20
8.0.20.0090.01117.46
8.0.10.0050.00317.04
8.0.00.0080.00916.85
7.4.330.0000.00615.20
7.4.320.0030.00316.78
7.4.300.0030.00316.82
7.4.290.0050.00216.69
7.4.280.0070.00016.72
7.4.270.0030.00516.77
7.4.260.0000.00716.73
7.4.250.0030.00616.63
7.4.240.0020.00616.71
7.4.230.0030.00316.66
7.4.220.0090.00916.71
7.4.210.0080.00816.72
7.4.200.0020.00516.79
7.4.190.0070.00016.82
7.4.160.0030.01316.71
7.4.150.0060.01117.40
7.4.140.0070.01017.86
7.4.130.0110.00616.71
7.4.120.0110.00816.64
7.4.110.0130.00616.85
7.4.100.0150.00816.62
7.4.90.0160.00816.73
7.4.80.0060.01219.39
7.4.70.0160.00016.73
7.4.60.0230.00016.64
7.4.50.0040.00416.74
7.4.40.0100.00722.77
7.4.30.0060.01116.55
7.4.00.0040.00714.98
7.3.330.0000.00713.29
7.3.320.0000.00613.18
7.3.310.0030.00516.28
7.3.300.0030.00316.44
7.3.290.0100.01016.39
7.3.280.0060.01016.46
7.3.270.0100.01017.40
7.3.260.0110.00616.60
7.3.250.0080.01316.56
7.3.240.0040.01316.45
7.3.230.0060.01216.72
7.3.210.0150.00316.41
7.3.200.0200.00319.39
7.3.190.0030.01416.56
7.3.180.0030.01316.62
7.3.170.0160.00616.55
7.3.160.0060.01516.68
7.3.120.0040.01515.06
7.3.10.0060.00616.62
7.3.00.0060.00616.85
7.2.330.0030.01416.96
7.2.320.0120.00616.46
7.2.310.0130.00716.94
7.2.300.0130.01016.96
7.2.290.0100.01316.86
7.2.130.0100.00316.95
7.2.120.0000.01016.88
7.2.110.0060.00316.82
7.2.100.0070.00416.77
7.2.90.0070.00717.13
7.2.80.0090.00316.73
7.2.70.0070.00716.82
7.2.60.0030.01016.72
7.2.50.0040.01117.09
7.2.40.0030.00716.98
7.2.30.0060.00616.74
7.2.20.0120.00416.90
7.2.10.0040.00816.91
7.2.00.0040.01218.04
7.1.250.0040.00715.57
7.1.200.0080.00815.63
7.1.100.0030.01417.95
7.1.70.0030.00517.01
7.1.60.0070.01119.46
7.1.50.0030.01716.91
7.1.00.0100.07022.43
7.0.200.0990.00714.86
7.0.140.0030.07322.23
7.0.60.0100.06720.07
7.0.50.0100.07017.93
7.0.40.0130.05720.40
7.0.30.0500.07320.34
7.0.20.0330.07720.12
7.0.10.0100.05720.09
7.0.00.0030.04719.99
5.6.280.0000.07721.21
5.6.210.0030.07720.79
5.6.200.0030.05318.45
5.6.190.0030.04720.43
5.6.180.0230.05720.58
5.6.170.0200.05320.68
5.6.160.0100.08020.76
5.6.150.0100.06018.37
5.6.140.0100.07318.41
5.6.130.0030.06018.34
5.6.120.0200.06321.29
5.6.110.0100.06721.29
5.6.100.0000.08321.24
5.6.90.0130.05721.26
5.6.80.0030.08020.70
5.6.70.4030.03020.80
5.5.350.0330.07320.61
5.5.340.0100.04018.23
5.5.330.0100.08720.56
5.5.320.0230.07320.39
5.5.310.0330.08020.33
5.5.300.0100.04318.14
5.5.290.0070.08018.25
5.5.280.0100.08021.05
5.5.270.0100.05721.25
5.5.260.0070.08021.13
5.5.250.0170.07320.97
5.5.240.0230.07320.55
5.4.450.0700.08319.35
5.4.440.0500.07019.61
5.4.430.0600.06319.60
5.4.420.0770.04719.34
5.4.410.0600.07719.36
5.4.400.0970.05319.16
5.4.390.0830.05319.14
5.4.380.0500.05318.98
5.4.370.0230.06019.13
5.4.360.0200.06719.11
5.4.350.0470.06719.14
5.4.340.0470.06319.14
5.4.320.0060.03712.94
5.4.310.0050.04112.94
5.4.300.0100.03412.94
5.4.290.0050.05212.92
5.4.280.0060.03812.82
5.4.270.0060.04912.82
5.4.260.0090.05912.82
5.4.250.0120.05412.82
5.4.240.0050.03812.82
5.4.230.0020.04412.81
5.4.220.0040.04212.81
5.4.210.0070.03712.81
5.4.200.0060.04512.80
5.4.190.0070.05512.80
5.4.180.0090.03612.80
5.4.170.0040.04112.82
5.4.160.0070.03812.82
5.4.150.0020.04312.81
5.4.140.0070.04012.49
5.4.130.0090.03612.48
5.4.120.0090.03612.44
5.4.110.0060.04012.43
5.4.100.0120.05112.43
5.4.90.0080.06312.43
5.4.80.0080.05612.43
5.4.70.0060.05512.43
5.4.60.0080.05312.43
5.4.50.0060.05612.43
5.4.40.0060.05512.42
5.4.30.0050.05412.41
5.4.20.0060.04312.42
5.4.10.0070.03812.42
5.4.00.0070.05711.91
5.3.290.0110.04313.18
5.3.280.0150.05113.11
5.3.270.0140.06613.13
5.3.260.0070.04013.13
5.3.250.0040.04113.13
5.3.240.0100.05213.13
5.3.230.0060.05613.12
5.3.220.0120.04913.09
5.3.210.0050.07013.09
5.3.200.0080.05713.09
5.3.190.0050.05013.09
5.3.180.0060.04013.09
5.3.170.0130.03313.08
5.3.160.0070.04213.08
5.3.150.0020.04313.08
5.3.140.0050.04013.07
5.3.130.0030.06313.07
5.3.120.0090.03913.07
5.3.110.0040.04213.07
5.3.100.0070.03912.55
5.3.90.0070.03712.54
5.3.80.0040.04012.53
5.3.70.0060.03812.53
5.3.60.0070.03712.52
5.3.50.0060.03812.46
5.3.40.0040.04012.46
5.3.30.0070.05212.43
5.3.20.0090.03912.20
5.3.10.0040.04412.17
5.3.00.0110.03412.17
5.2.170.0080.0359.61
5.2.160.0030.0339.61
5.2.150.0060.0319.61
5.2.140.0050.0329.61
5.2.130.0030.0339.57
5.2.120.0040.0319.57
5.2.110.0040.0339.57
5.2.100.0070.0299.57
5.2.90.0050.0329.57
5.2.80.0060.0319.56
5.2.70.0040.0399.56
5.2.60.0050.0389.52
5.2.50.0050.0329.48
5.2.40.0060.0309.46
5.2.30.0060.0319.49
5.2.20.0060.0319.27
5.2.10.0050.0319.20
5.2.00.0040.0389.06
5.1.60.0060.0248.65
5.1.50.0040.0278.64
5.1.40.0050.0258.63
5.1.30.0050.0288.98
5.1.20.0030.0319.00
5.1.10.0030.0448.73
5.1.00.0040.0328.73
5.0.50.0070.0237.21
5.0.40.0030.0247.06
5.0.30.0020.0366.88
5.0.20.0060.0226.85
5.0.10.0050.0236.82
5.0.00.0030.0396.82
4.4.90.0000.0235.21
4.4.80.0030.0205.19
4.4.70.0060.0415.19
4.4.60.0020.0215.20
4.4.50.0030.0225.21
4.4.40.0090.0435.20
4.4.30.0080.0465.20
4.4.20.0120.0345.27
4.4.10.0050.0285.26
4.4.00.0110.0795.23
4.3.110.0080.0555.14
4.3.100.0050.0685.13
4.3.90.0210.1655.11
4.3.80.0070.0945.11
4.3.70.0130.0495.11
4.3.60.0050.0235.11
4.3.50.0070.0325.11
4.3.40.0040.0455.06
4.3.30.0050.0503.87
4.3.20.0060.0333.85
4.3.10.0100.0473.81
4.3.00.0030.01710.31

preferences:
61.86 ms | 400 KiB | 5 Q