3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "accept add admire admit advise afford agree alert allow amuse analyse announce annoy answer apologise appear applaud appreciate approve argue arrange arrest arrive ask attach attack attempt attend attract avoid"; $string = preg_replace("/\w/", ",", $string); echo $string;

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.0110.00418.05
8.3.50.0140.00522.12
8.3.40.0120.00918.97
8.3.30.0070.00719.09
8.3.20.0040.00420.30
8.3.10.0080.00021.92
8.3.00.0040.00422.43
8.2.180.0150.00617.00
8.2.170.0120.00322.96
8.2.160.0110.00420.82
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0040.00817.73
8.2.110.0060.00322.29
8.2.100.0110.00319.63
8.2.90.0050.00319.25
8.2.80.0030.00518.03
8.2.70.0090.00017.63
8.2.60.0070.00317.93
8.2.50.0080.00018.07
8.2.40.0030.00517.92
8.2.30.0040.00417.99
8.2.20.0030.00617.75
8.2.10.0040.00417.86
8.2.00.0070.00417.75
8.1.280.0140.00025.92
8.1.270.0100.00022.05
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0080.00023.71
8.1.230.0060.00619.12
8.1.220.0030.00617.77
8.1.210.0040.00418.77
8.1.200.0000.00917.35
8.1.190.0000.00717.15
8.1.180.0000.00818.66
8.1.170.0080.00018.69
8.1.160.0070.00021.97
8.1.150.0030.00618.63
8.1.140.0000.00717.54
8.1.130.0000.00717.82
8.1.120.0000.00817.51
8.1.110.0040.00417.55
8.1.100.0000.00717.55
8.1.90.0040.00417.45
8.1.80.0070.00017.54
8.1.70.0030.00317.50
8.1.60.0070.00317.63
8.1.50.0000.00717.61
8.1.40.0040.00417.50
8.1.30.0000.00717.69
8.1.20.0040.00417.68
8.1.10.0000.00717.54
8.1.00.0040.00417.57
8.0.300.0040.00418.77
8.0.290.0040.00417.05
8.0.280.0040.00418.38
8.0.270.0040.00417.24
8.0.260.0070.00016.96
8.0.250.0000.00717.07
8.0.240.0030.00617.14
8.0.230.0040.00416.92
8.0.220.0030.00316.89
8.0.210.0030.00316.91
8.0.200.0040.00417.08
8.0.190.0060.00316.99
8.0.180.0000.00816.97
8.0.170.0000.00717.00
8.0.160.0030.00616.93
8.0.150.0030.00316.99
8.0.140.0040.00416.88
8.0.130.0000.00613.48
8.0.120.0040.00416.97
8.0.110.0000.00716.95
8.0.100.0000.00716.96
8.0.90.0070.00017.05
8.0.80.0070.00716.93
8.0.70.0040.00417.00
8.0.60.0040.00416.88
8.0.50.0080.00017.00
8.0.30.0110.01117.23
8.0.20.0100.00917.40
8.0.10.0000.00716.96
8.0.00.0080.01017.03
7.4.330.0000.00515.08
7.4.320.0030.00316.56
7.4.300.0000.00616.61
7.4.290.0040.00416.70
7.4.280.0000.00916.61
7.4.270.0030.00316.61
7.4.260.0030.00816.66
7.4.250.0000.00716.59
7.4.240.0000.00716.70
7.4.230.0030.00316.66
7.4.220.0110.01116.82
7.4.210.0070.00916.65
7.4.200.0040.00416.86
7.4.190.0050.00316.74
7.4.160.0090.01216.61
7.4.150.0110.00617.40
7.4.140.0090.01217.86
7.4.130.0080.00916.58
7.4.120.0060.01116.73
7.4.110.0060.00916.66
7.4.100.0130.00616.57
7.4.90.0100.00816.50
7.4.80.0130.00719.39
7.4.70.0100.01416.55
7.4.60.0130.00316.76
7.4.50.0070.00316.42
7.4.40.0030.01022.77
7.4.30.0100.00616.80
7.4.00.0040.01114.99
7.3.330.0030.00313.25
7.3.320.0000.00513.07
7.3.310.0070.00016.36
7.3.300.0000.00716.37
7.3.290.0030.01516.39
7.3.280.0120.00516.29
7.3.270.0030.01517.40
7.3.260.0120.01916.35
7.3.250.0140.00316.40
7.3.240.0080.00916.36
7.3.230.0170.00316.59
7.3.210.0120.00616.37
7.3.200.0070.01019.39
7.3.190.0120.00616.19
7.3.180.0080.00816.43
7.3.170.0160.00616.48
7.3.160.0130.00716.55
7.3.120.0070.01014.81
7.3.10.0090.00916.68
7.3.00.0110.00516.63
7.2.330.0120.00616.81
7.2.320.0120.00616.68
7.2.310.0100.01016.80
7.2.300.0150.00316.48
7.2.290.0090.00616.68
7.2.130.0080.00816.83
7.2.120.0070.00716.89
7.2.110.0080.00516.89
7.2.100.0050.01016.99
7.2.90.0060.00916.98
7.2.80.0060.00617.03
7.2.70.0060.01016.92
7.2.60.0100.00216.85
7.2.50.0040.01116.93
7.2.40.0030.01217.09
7.2.30.0050.01116.73
7.2.20.0060.00716.88
7.2.10.0130.00417.06
7.2.00.0080.00517.84
7.1.250.0030.01115.89
7.1.100.0080.00318.43
7.1.70.0030.00617.40
7.1.60.0070.01919.82
7.1.50.0000.01016.92
7.1.00.0000.09022.45
7.0.200.0040.00416.92
7.0.140.0030.07321.97
7.0.60.0100.08019.85
7.0.50.0100.05017.86
7.0.40.0030.04720.44
7.0.30.0170.04720.19
7.0.20.0330.07320.13
7.0.10.0230.04020.05
7.0.00.0030.06020.05
5.6.280.0030.07321.10
5.6.210.0030.04020.62
5.6.200.0070.08018.23
5.6.190.0100.08020.37
5.6.180.3230.04020.41
5.6.170.0230.04020.49
5.6.160.0100.07720.46
5.6.150.0070.06718.21
5.6.140.0030.04718.22
5.6.130.0070.03718.22
5.6.120.0030.07720.97
5.6.110.0070.08320.97
5.6.100.0070.04021.08
5.6.90.0100.06320.95
5.6.80.0070.05720.51
5.6.70.0270.06320.43
5.5.350.0170.07720.46
5.5.340.0070.05317.98
5.5.330.0100.08320.16
5.5.320.0200.07320.34
5.5.310.0270.06020.33
5.5.300.0030.04717.97
5.5.290.0070.08717.98
5.5.280.0000.05720.76
5.5.270.0070.04020.79
5.5.260.0070.03720.86
5.5.250.0100.07720.65
5.5.240.0030.04020.03
5.4.450.0670.05319.63
5.4.440.0200.05019.46
5.4.430.0130.05019.31
5.4.420.0130.05019.31
5.4.410.0170.04719.52
5.4.400.0830.00018.61
5.4.390.0800.00018.70
5.4.380.0170.05718.65
5.4.370.0200.05718.45
5.4.360.0230.05718.66
5.4.350.0270.05018.52
5.4.340.0530.04318.78
5.4.320.0050.03912.45
5.4.310.0070.03912.45
5.4.300.0070.04112.46
5.4.290.0040.04412.45
5.4.280.0080.04112.34
5.4.270.0070.04012.35
5.4.260.0070.07318.78
5.4.250.0130.07019.00
5.4.240.0100.07719.03
5.4.230.0000.06318.83
5.4.220.0070.08319.03
5.4.210.0230.06719.03
5.4.200.0100.06718.68
5.4.190.0170.06318.70
5.4.180.0200.06318.88
5.4.170.0000.06318.78
5.4.160.0130.07019.00
5.4.150.0130.05018.72
5.4.140.0100.07316.27
5.4.130.0070.06716.24
5.4.120.0170.04716.32
5.4.110.0170.06716.30
5.4.100.0030.06016.51
5.4.90.0170.05716.37
5.4.80.0130.06316.39
5.4.70.0070.06016.53
5.4.60.0100.04716.27
5.4.50.0030.05716.38
5.4.40.0130.06316.21
5.4.30.0300.04716.30
5.4.20.0130.06316.22
5.4.10.0070.07316.12
5.4.00.0030.06015.70
5.3.290.0090.04412.80
5.3.280.0200.04014.46
5.3.270.0000.06014.30
5.3.260.0200.07014.29
5.3.250.0100.06314.75
5.3.240.0200.05014.59
5.3.230.0030.07714.61
5.3.220.0230.06014.41
5.3.210.0130.06714.41
5.3.200.0200.06714.42
5.3.190.0100.05714.43
5.3.180.0070.07714.43
5.3.170.0130.07014.56
5.3.160.0200.04714.56
5.3.150.0130.06014.45
5.3.140.0070.06014.47
5.3.130.0070.07014.60
5.3.120.0030.06314.31
5.3.110.0170.06314.63
5.3.100.0100.05314.06
5.3.90.0070.05713.93
5.3.80.0170.06714.17
5.3.70.0170.05313.96
5.3.60.0030.06714.00
5.3.50.0130.05013.94
5.3.40.0170.05013.80
5.3.30.0100.06713.92
5.3.20.0030.05313.39
5.3.10.0070.07013.66
5.3.00.0130.06013.49
5.2.170.0130.04711.25
5.2.160.0130.05311.16
5.2.150.0070.06311.07
5.2.140.0100.04311.16
5.2.130.0100.03311.11
5.2.120.0130.03010.85
5.2.110.0070.04310.87
5.2.100.0170.04311.19
5.2.90.0030.04711.21
5.2.80.0070.05711.11
5.2.70.0100.05710.86
5.2.60.0070.06011.07
5.2.50.0130.04711.02
5.2.40.0100.04311.01
5.2.30.0030.05010.99
5.2.20.0100.03710.86
5.2.10.0030.05710.93
5.2.00.0030.04310.50
5.1.60.0030.03310.23
5.1.50.0070.0509.90
5.1.40.0070.03710.12
5.1.30.0100.05010.50
5.1.20.0000.04010.43
5.1.10.0070.04310.09
5.1.00.0070.03310.25
5.0.50.0100.0238.39
5.0.40.0030.0308.19
5.0.30.0070.0438.24
5.0.20.0070.0338.16
5.0.10.0000.0408.16
5.0.00.0070.0538.30
4.4.90.0070.0207.52
4.4.80.0070.0307.52
4.4.70.0030.0237.52
4.4.60.0030.0237.52
4.4.50.0000.0307.52
4.4.40.0030.0337.52
4.4.30.0000.0237.52
4.4.20.0070.0277.52
4.4.10.0000.0237.52
4.4.00.0030.0337.52
4.3.110.0030.0307.52
4.3.100.0000.0337.52
4.3.90.0030.0307.52
4.3.80.0070.0377.52
4.3.70.0070.0207.52
4.3.60.0000.0277.52
4.3.50.0000.0237.52
4.3.40.0000.0477.52
4.3.30.0000.0237.52
4.3.20.0000.0237.52
4.3.10.0030.0207.52
4.3.00.0000.0238.20

preferences:
42.81 ms | 401 KiB | 5 Q