3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = str_repeat('foo', 500000); $y = 'bar'; // $before = microtime(1); $x . $y; // printf('%f'."\n", microtime(1) - $before); // $x = str_repeat('foo', 500000); // $y = 'bar'; // $before = microtime(1); $x .= $y; // printf('%f'."\n", microtime(1) - $before);

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.0070.01019.13
8.3.50.0150.00722.99
8.3.40.0170.00321.40
8.3.30.0130.00321.79
8.3.20.0040.01523.18
8.3.10.0040.00425.57
8.3.00.0070.00321.94
8.2.180.0040.01419.79
8.2.170.0120.00622.96
8.2.160.0100.00623.22
8.2.150.0030.00624.18
8.2.140.0090.00024.66
8.2.130.0040.00426.16
8.2.120.0090.00321.98
8.2.110.0040.00424.36
8.2.100.0030.01121.80
8.2.90.0030.00622.26
8.2.80.0000.00920.37
8.2.70.0070.00320.50
8.2.60.0090.00020.80
8.2.50.0080.00320.50
8.2.40.0050.00322.00
8.2.30.0060.00320.88
8.2.20.0090.00020.38
8.2.10.0080.00020.84
8.2.00.0040.00420.51
8.1.280.0100.01425.92
8.1.270.0130.00626.07
8.1.260.0080.00026.35
8.1.250.0090.00028.09
8.1.240.0090.00025.98
8.1.230.0030.01022.03
8.1.220.0000.00820.41
8.1.210.0000.01320.10
8.1.200.0080.00420.25
8.1.190.0000.00920.11
8.1.180.0060.00320.11
8.1.170.0040.00721.88
8.1.160.0000.00924.71
8.1.150.0080.00021.29
8.1.140.0030.00720.14
8.1.130.0040.00420.63
8.1.120.0000.00920.08
8.1.110.0050.00520.20
8.1.100.0040.00420.19
8.1.90.0030.00620.05
8.1.80.0080.00020.13
8.1.70.0080.00020.14
8.1.60.0120.00020.20
8.1.50.0060.00320.21
8.1.40.0030.00620.13
8.1.30.0030.01020.21
8.1.20.0090.00020.24
8.1.10.0000.00820.25
8.1.00.0040.00420.11
8.0.300.0040.00419.97
8.0.290.0000.00919.90
8.0.280.0070.00321.20
8.0.270.0060.00320.00
8.0.260.0000.00719.99
8.0.250.0050.00319.57
8.0.240.0110.00019.49
8.0.230.0080.00019.47
8.0.220.0050.00319.52
8.0.210.0040.00419.56
8.0.200.0040.00419.60
8.0.190.0060.00319.54
8.0.180.0060.00319.47
8.0.170.0100.00019.49
8.0.160.0050.00319.52
8.0.150.0040.00419.43
8.0.140.0040.00419.52
8.0.130.0090.00016.06
8.0.120.0030.00619.53
8.0.110.0080.00019.52
8.0.100.0060.00319.57
8.0.90.0000.00919.32
8.0.80.0030.01319.47
8.0.70.0060.00319.56
8.0.60.0060.00319.52
8.0.50.0060.00319.59
8.0.30.0150.00819.65
8.0.20.0100.01419.61
8.0.10.0040.00419.55
8.0.00.0090.01319.26
7.4.330.0060.00316.01
7.4.320.0040.00418.93
7.4.300.0080.00019.00
7.4.290.0070.00419.01
7.4.280.0060.00319.03
7.4.270.0000.00919.13
7.4.260.0060.00319.11
7.4.250.0060.00318.98
7.4.240.0010.00719.13
7.4.230.0050.00319.19
7.4.220.0170.01419.04
7.4.210.0120.00619.12
7.4.200.0000.00919.03
7.4.190.0030.00518.92
7.4.160.0080.01419.08
7.4.150.0110.01118.95
7.4.140.0120.00919.16
7.4.130.0120.01319.12
7.4.120.0140.00919.12
7.4.110.0140.00719.17
7.4.100.0130.01019.20
7.4.90.0140.00718.99
7.4.80.0130.01619.39
7.4.70.0120.00919.09
7.4.60.0100.01019.12
7.4.50.0030.00318.97
7.4.40.0170.01018.98
7.4.30.0080.01619.12
7.4.00.0090.00917.67
7.3.330.0030.00315.80
7.3.320.0070.00015.76
7.3.310.0000.00918.85
7.3.300.0030.00618.83
7.3.290.0080.01218.84
7.3.280.0200.00218.77
7.3.270.0140.00918.88
7.3.260.0210.00018.70
7.3.250.0110.01118.82
7.3.240.0120.01718.93
7.3.230.0090.01219.06
7.3.210.0070.01418.69
7.3.200.0190.00919.39
7.3.190.0090.01219.25
7.3.180.0160.00619.03
7.3.170.0160.01018.92
7.3.160.0100.01018.91
7.3.120.0040.01117.38
7.3.10.0060.01018.46
7.3.00.0110.00618.43
7.2.330.0090.01219.38
7.2.320.0070.02018.96
7.2.310.0070.01719.10
7.2.300.0060.01919.27
7.2.290.0190.00319.07
7.2.130.0100.00718.59
7.2.120.0050.00818.77
7.2.110.0110.00518.56
7.2.100.0050.01018.71
7.2.90.0060.01118.75
7.2.80.0140.00518.85
7.2.70.0060.00918.84
7.2.60.0090.01018.86
7.2.50.0100.00818.54
7.2.40.0140.00518.85
7.2.30.0060.00918.67
7.2.20.0100.00718.88
7.2.10.0080.00918.56
7.2.00.0050.00918.67
7.1.250.0090.00517.50
7.1.240.0010.01317.64
7.1.230.0110.00317.53
7.1.220.0030.01317.66
7.1.210.0050.01217.43
7.1.200.0100.01017.59
7.1.190.0080.01117.56
7.1.180.0140.00617.46
7.1.170.0120.00717.50
7.1.160.0030.01217.58
7.1.150.0100.00517.64
7.1.140.0040.00917.37
7.1.130.0050.00817.65
7.1.120.0070.00617.60
7.1.110.0030.00917.69
7.1.100.0080.00817.76
7.1.90.0100.00317.47
7.1.80.0070.00517.71
7.1.70.0050.00918.13
7.1.60.0080.00918.06
7.1.50.0040.01317.95
7.1.40.0080.00817.49
7.1.30.0060.00717.47
7.1.20.0090.01217.45
7.1.10.0120.00617.68
7.1.00.0080.02919.84
7.0.330.0080.00617.27
7.0.320.0040.00817.23
7.0.310.0080.00317.10
7.0.300.0110.00817.32
7.0.290.0020.01017.18
7.0.280.0040.01017.21
7.0.270.0070.00917.20
7.0.260.0050.00717.35
7.0.250.0060.00917.48
7.0.240.0050.00417.44
7.0.230.0060.00617.21
7.0.220.0070.00417.41
7.0.210.0050.00717.44
7.0.200.0090.00717.81
7.0.190.0080.00917.23
7.0.180.0020.01217.29
7.0.170.0120.00517.28
7.0.160.0130.00317.38
7.0.150.0090.00317.34
7.0.140.0050.02819.55
7.0.130.0070.00717.12
7.0.120.0050.00817.38
7.0.110.0020.01117.33
7.0.100.0040.00817.28
7.0.90.0060.00817.22
7.0.80.0030.01217.31
7.0.70.0060.00917.49
7.0.60.0060.02019.08
7.0.50.0050.02418.36
7.0.40.0080.02615.63
7.0.30.0090.02315.71
7.0.20.0110.02115.58
7.0.10.0080.03315.63
7.0.00.0080.01915.76
5.6.380.0070.00717.26
5.6.370.0050.01117.11
5.6.360.0060.00816.96
5.6.350.0140.00316.85
5.6.340.0090.00717.24
5.6.330.0060.00717.02
5.6.320.0040.01116.94
5.6.310.0030.00916.79
5.6.300.0080.00717.12
5.6.290.0080.00416.95
5.6.280.0050.03119.35
5.6.270.0030.00817.04
5.6.260.0060.00717.12
5.6.250.0050.00916.88
5.6.240.0050.00817.07
5.6.230.0070.00717.16
5.6.220.0090.00917.04
5.6.210.0080.01519.22
5.6.200.0100.02918.35
5.6.190.0080.02219.03
5.6.180.0200.02219.12
5.6.170.0110.01918.98
5.6.160.0080.03419.09
5.6.150.0090.01518.28
5.6.140.0070.02218.35
5.6.130.0090.02718.40
5.6.120.0100.02219.21
5.6.110.0070.02519.35
5.6.100.0130.03019.29
5.6.90.0090.02419.21
5.6.80.0050.03619.08
5.6.70.0070.01016.96
5.6.60.0070.01016.90
5.6.50.0120.00516.76
5.6.40.0060.01116.95
5.6.30.0060.01116.76
5.6.20.0020.01516.97
5.6.10.0060.00817.02
5.6.00.0100.00716.93
5.5.380.0030.00813.58
5.5.370.0090.00713.84
5.5.360.0090.00513.79
5.5.350.0180.02716.89
5.5.340.0090.01816.01
5.5.330.0060.03316.71
5.5.320.0050.03016.81
5.5.310.0140.02216.69
5.5.300.0080.03216.19
5.5.290.0050.03416.00
5.5.280.0090.02816.90
5.5.270.0060.02317.04
5.5.260.0110.01917.07
5.5.250.0020.02116.88
5.5.240.0070.01516.75
5.5.230.0050.00513.70
5.5.220.0080.00613.48
5.5.210.0080.00613.56
5.5.200.0070.00413.43
5.5.190.0120.00013.60
5.5.180.0060.00813.52
5.5.170.0030.01013.71
5.5.160.0050.00613.74
5.5.150.0060.00613.65
5.5.140.0080.00613.60
5.5.130.0020.01013.82
5.5.120.0040.00913.64
5.5.110.0050.00713.72
5.5.100.0050.00813.60
5.5.90.0040.00313.49
5.5.80.0100.00313.58
5.5.70.0080.00513.67
5.5.60.0080.00513.65
5.5.50.0040.00513.54
5.5.40.0070.00713.63
5.5.30.0050.00613.67
5.5.20.0020.00913.47
5.5.10.0050.00513.62
5.5.00.0060.00613.48
5.4.450.0330.02416.30
5.4.440.0360.02616.57
5.4.430.0400.02016.55
5.4.420.0420.02216.50
5.4.410.0360.02116.34
5.4.400.0400.02716.19
5.4.390.0360.02716.28
5.4.380.0110.02116.14
5.4.370.0100.02116.20
5.4.360.0260.01516.15
5.4.350.0150.02016.13
5.4.340.0070.02316.26
5.4.330.0030.01113.65
5.4.320.0070.01514.17
5.4.310.0060.01914.20
5.4.300.0030.01914.18
5.4.290.0070.01514.11
5.4.280.0060.01914.15
5.4.270.0050.01714.10
5.4.260.0050.01614.14
5.4.250.0050.01714.17
5.4.240.0050.01914.08
5.4.230.0030.02114.11
5.4.220.0070.01614.20
5.4.210.0060.01614.17
5.4.200.0070.01514.09
5.4.190.0060.01513.99
5.4.180.0060.01714.05
5.4.170.0040.01914.01
5.4.160.0060.01714.10
5.4.150.0030.02014.01
5.4.140.0070.01514.14
5.4.130.0070.01614.02
5.4.120.0060.01714.04
5.4.110.0060.01613.97
5.4.100.0070.01513.94
5.4.90.0050.01713.91
5.4.80.0060.01613.86
5.4.70.0060.01614.01
5.4.60.0080.01513.94
5.4.50.0040.01713.88
5.4.40.0040.01613.94
5.4.30.0060.01714.00
5.4.20.0040.01714.08
5.4.10.0070.01513.95
5.4.00.0090.01413.75
5.3.290.0100.01813.92
5.3.280.0060.01413.76
5.3.270.0040.01913.84
5.3.260.0050.01613.80
5.3.250.0050.01613.81
5.3.240.0070.01613.79
5.3.230.0050.01813.80
5.3.220.0060.01813.72
5.3.210.0060.01913.65
5.3.200.0060.01813.71
5.3.190.0060.01613.70
5.3.180.0020.01913.79
5.3.170.0070.01613.86
5.3.160.0050.01813.88
5.3.150.0060.01713.84
5.3.140.0080.01513.76
5.3.130.0060.01513.81
5.3.120.0050.01813.79
5.3.110.0070.01613.74
5.3.100.0080.01413.58
5.3.90.0050.01713.61
5.3.80.0050.01813.46
5.3.70.0060.01713.46
5.3.60.0060.01513.54
5.3.50.0050.01813.49
5.3.40.0100.01413.47
5.3.30.0090.01213.40
5.3.20.0100.01413.39
5.3.10.0070.01713.21
5.3.00.0070.01513.28
5.2.170.0040.01512.02
5.2.160.0050.01212.00
5.2.150.0070.01211.96
5.2.140.0070.01311.89
5.2.130.0080.01111.92
5.2.120.0090.01311.97
5.2.110.0050.01311.95
5.2.100.0070.01411.95
5.2.90.0020.01611.90
5.2.80.0050.01311.77
5.2.70.0060.01211.84
5.2.60.0040.01611.71
5.2.50.0070.01211.77
5.2.40.0060.01311.75
5.2.30.0070.01211.80
5.2.20.0040.01511.80
5.2.10.0060.01211.52
5.2.00.0060.01211.60
5.1.60.0060.01110.88
5.1.50.0060.01110.97
5.1.40.0080.01210.82
5.1.30.0060.01311.20
5.1.20.0070.01211.03
5.1.10.0040.01411.07
5.1.00.0030.0168.25
5.0.50.0060.0139.80
5.0.40.0060.0139.79
5.0.30.0040.0149.63
5.0.20.0060.0139.61
5.0.10.0050.0129.56
5.0.00.0040.0199.46
4.4.90.0050.0087.90
4.4.80.0030.0107.98
4.4.70.0040.0097.95
4.4.60.0040.0087.93
4.4.50.0020.0097.94
4.4.40.0040.0127.91
4.4.30.0060.0047.93
4.4.20.0020.0098.01
4.4.10.0030.0087.90
4.4.00.0050.0147.88
4.3.110.0060.0107.86
4.3.100.0030.0087.85
4.3.90.0060.0067.86
4.3.80.0010.0137.83
4.3.70.0030.0097.81
4.3.60.0060.0077.80
4.3.50.0030.0097.79
4.3.40.0070.0117.86
4.3.30.0030.0107.36
4.3.20.0030.0087.36
4.3.10.0040.0077.35
4.3.00.0040.01010.71

preferences:
42.97 ms | 401 KiB | 5 Q