3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = ['41136.07.6', '21511.01.1']; function substr05(&$item) { $item = substr($item, 0, 5); } array_walk($arr, "substr05"); print_r($arr);

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.5.00.0110.01119.68
8.4.150.0030.00014.05
8.4.140.0130.00817.64
8.4.130.0090.01117.89
8.4.120.0070.00923.93
8.4.110.0100.00922.53
8.4.100.0050.00718.83
8.4.90.0070.00220.53
8.4.80.0110.00917.79
8.4.70.0050.00317.70
8.4.60.0050.00320.57
8.4.50.0040.00717.53
8.4.40.0130.00617.26
8.4.30.0130.00718.36
8.4.20.0150.00620.54
8.4.10.0030.00617.80
8.3.280.0100.00918.27
8.3.270.0100.00916.19
8.3.260.0150.00516.26
8.3.250.0090.00918.66
8.3.240.0090.00817.25
8.3.230.0120.00717.08
8.3.220.0120.00718.82
8.3.210.0040.00416.54
8.3.200.0060.00316.54
8.3.190.0130.00717.20
8.3.180.0130.00516.56
8.3.170.0040.01518.81
8.3.160.0150.00316.63
8.3.150.0120.00818.76
8.3.140.0140.00020.68
8.3.130.0050.00318.28
8.3.120.0030.00618.89
8.3.110.0060.00320.94
8.3.100.0060.00324.06
8.3.90.0090.00326.77
8.3.80.0080.00416.38
8.3.70.0070.00716.63
8.3.60.0120.00316.50
8.3.50.0130.00724.46
8.3.40.0070.00720.29
8.3.30.0180.00018.72
8.3.20.0070.00021.74
8.3.10.0040.00421.96
8.3.00.0070.00020.72
8.2.290.0140.00420.53
8.2.280.0050.00318.52
8.2.270.0040.01417.06
8.2.260.0150.00316.54
8.2.250.0060.00318.39
8.2.240.0040.00417.12
8.2.230.0060.01022.58
8.2.220.0040.00437.54
8.2.210.0120.00326.77
8.2.200.0080.00016.63
8.2.190.0140.00718.16
8.2.180.0140.00018.41
8.2.170.0030.01019.01
8.2.160.0100.00322.96
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0090.00026.16
8.2.120.0080.00019.56
8.2.110.0040.00421.18
8.2.100.0160.00017.78
8.2.90.0040.00419.22
8.2.80.0040.00417.97
8.2.70.0060.00317.50
8.2.60.0040.00417.93
8.2.50.0030.00618.07
8.2.40.0070.00018.03
8.2.30.0040.00417.88
8.2.20.0030.00617.98
8.2.10.0000.00719.31
8.2.00.0050.00219.28
8.1.330.0090.01021.73
8.1.320.0110.01015.91
8.1.310.0040.00416.72
8.1.300.0080.01217.63
8.1.290.0040.00818.88
8.1.280.0040.01125.92
8.1.270.0050.00323.84
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0060.00317.64
8.1.230.0110.00019.04
8.1.220.0040.00417.78
8.1.210.0060.00318.77
8.1.200.0040.00417.36
8.1.190.0040.00417.10
8.1.180.0040.00418.10
8.1.170.0000.00818.46
8.1.160.0000.00718.87
8.1.150.0040.00418.87
8.1.140.0040.00418.87
8.1.130.0040.00421.80
8.1.120.0030.00317.34
8.1.110.0040.00417.39
8.1.100.0040.00417.28
8.1.90.0040.00417.44
8.1.80.0000.00717.40
8.1.70.0050.00317.40
8.1.60.0030.00517.49
8.1.50.0000.00817.36
8.1.40.0080.00017.44
8.1.30.0080.00017.52
8.1.20.0040.00417.46
8.1.10.0000.00917.52
8.1.00.0000.00717.43
8.0.300.0000.00718.77
8.0.290.0030.00616.63
8.0.280.0060.00318.38
8.0.270.0000.00717.86
8.0.260.0040.00419.90
8.0.250.0000.00616.93
8.0.240.0050.00316.86
8.0.230.0070.00016.77
8.0.220.0000.01016.82
8.0.210.0030.00316.81
8.0.200.0030.00316.93
8.0.190.0070.00016.92
8.0.180.0080.00016.88
8.0.170.0030.00516.73
8.0.160.0070.00016.90
8.0.150.0000.00716.65
8.0.140.0040.00416.80
8.0.130.0030.00313.13
8.0.120.0000.00716.88
8.0.110.0040.00416.73
8.0.100.0000.00716.89
8.0.90.0060.00316.89
8.0.80.0100.00716.80
8.0.70.0040.00416.84
8.0.60.0040.00416.61
8.0.50.0030.00516.77
8.0.30.0090.00916.94
8.0.20.0120.00516.96
8.0.10.0080.00016.84
8.0.00.0110.00916.79
7.4.330.0000.00515.55
7.4.320.0000.00616.60
7.4.300.0030.00316.54
7.4.290.0060.00316.52
7.4.280.0040.00416.54
7.4.270.0030.00316.47
7.4.260.0000.00513.11
7.4.250.0040.00416.50
7.4.240.0050.00316.38
7.4.230.0070.00016.34
7.4.220.0040.00416.48
7.4.210.0080.01016.51
7.4.200.0040.00416.64
7.4.130.0120.01116.20
7.4.120.0090.00916.42
7.4.110.0100.00716.45
7.4.100.0080.00816.23
7.4.90.0040.01316.50
7.4.80.0130.00319.39
7.4.70.0170.00016.38
7.4.60.0100.00716.39
7.4.50.0040.01216.18
7.4.40.0120.00616.23
7.4.30.0090.00616.23
7.4.20.0090.00616.61
7.4.10.0070.01016.38
7.4.00.0160.00616.32
7.3.330.0000.00716.20
7.3.320.0000.00613.13
7.3.310.0030.00316.20
7.3.300.0040.00416.11
7.3.290.0090.00716.18
7.3.280.0120.00316.16
7.3.260.0070.01116.27
7.3.240.0110.00616.32
7.3.230.0060.01716.41
7.3.210.0000.01716.06
7.3.200.0070.01016.39
7.3.190.0070.00716.25
7.3.180.0130.00316.43
7.3.170.0100.01016.16
7.3.160.0140.00716.05
7.3.150.0090.00616.51
7.3.140.0090.01216.33
7.3.130.0120.00916.24
7.3.120.0140.00716.16
7.3.110.0150.00016.19
7.3.100.0060.00916.16
7.3.90.0000.01616.03
7.3.80.0150.00016.20
7.3.70.0120.01616.15
7.3.60.0000.01516.09
7.3.50.0090.00616.17
7.3.40.0090.00916.28
7.3.30.0030.01316.17
7.3.20.0070.01016.16
7.3.10.0090.00916.14
7.3.00.0070.01116.13
7.2.330.0110.00716.48
7.2.320.0070.01016.25
7.2.310.0140.00716.62
7.2.300.0110.00616.37
7.2.290.0060.01016.47
7.2.280.0030.01316.57
7.2.270.0070.01016.20
7.2.260.0030.01916.49
7.2.250.0110.00716.37
7.2.240.0060.01016.46
7.2.230.0090.00616.47
7.2.220.0090.00616.27
7.2.210.0090.01216.18
7.2.200.0030.01216.41
7.2.190.0100.00716.32
7.2.180.0130.00316.46
7.2.170.0170.00016.50
7.2.160.0060.01016.45
7.2.150.0190.00316.48
7.2.140.0090.00916.59
7.2.130.0100.01116.39
7.2.120.0120.01316.55
7.2.110.0060.01116.58
7.2.100.0110.00816.53
7.2.90.0160.00716.51
7.2.80.0090.00916.43
7.2.70.0040.01316.55
7.2.60.0090.00916.29
7.2.50.0130.00416.43
7.2.40.0100.00716.50
7.2.30.0100.00716.61
7.2.20.0120.00616.58
7.2.10.0060.01216.36
7.2.00.0170.00016.31

preferences:
41.7 ms | 403 KiB | 5 Q