3v4l.org

run code in 300+ PHP versions simultaneously
<?php $myarray = ["test", "test2", "test3"]; var_export( substr_replace($myarray, ' ', 0, 0) );

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.10.0120.00516.62
8.5.00.0120.00919.95
8.4.150.0020.00114.05
8.4.140.0140.00717.43
8.4.130.0050.00318.60
8.4.120.0110.00824.03
8.4.110.0100.01018.64
8.4.100.0120.00918.66
8.4.90.0130.00920.60
8.4.80.0090.00918.95
8.4.70.0090.00918.73
8.4.60.0100.00618.78
8.4.50.0150.00619.21
8.4.40.0130.00617.35
8.4.30.0130.01018.58
8.4.20.0030.01319.70
8.4.10.0050.00519.11
8.3.280.0150.00518.41
8.3.270.0090.01116.37
8.3.260.0110.00916.73
8.3.250.0110.00818.94
8.3.240.0110.01216.83
8.3.230.0060.00216.48
8.3.220.0040.00318.71
8.3.210.0120.00418.20
8.3.200.0070.00116.38
8.3.190.0090.00916.71
8.3.180.0100.00818.38
8.3.170.0080.00018.89
8.3.160.0140.00417.31
8.3.150.0120.00616.93
8.3.140.0050.00316.65
8.3.130.0090.00616.69
8.3.120.0000.00820.56
8.3.110.0080.00020.94
8.3.100.0060.00316.74
8.3.90.0070.00026.77
8.3.80.0040.00417.97
8.3.70.0120.00316.50
8.3.60.0100.01016.57
8.3.50.0130.00318.23
8.3.40.0110.01121.47
8.3.30.0130.00620.72
8.3.20.0090.00923.70
8.3.10.0090.00621.95
8.3.00.0110.00418.57
8.2.290.0100.00720.06
8.2.280.0100.01118.43
8.2.270.0120.00617.38
8.2.260.0040.00418.32
8.2.250.0130.00616.70
8.2.240.0070.00318.95
8.2.230.0030.00622.58
8.2.220.0040.00424.06
8.2.210.0120.00626.77
8.2.200.0040.00718.29
8.2.190.0110.01118.54
8.2.180.0110.01116.38
8.2.170.0040.01818.68
8.2.160.0140.00720.32
8.2.150.0070.00719.01
8.2.140.0110.00420.52
8.2.130.0140.00020.47
8.2.120.0060.00819.14
8.2.110.0110.00419.10
8.2.100.0070.00719.31
8.2.90.0070.01418.64
8.2.80.0110.00419.15
8.2.70.0090.00618.77
8.2.60.0000.01418.71
8.2.50.0110.01119.14
8.2.40.0040.01118.74
8.2.30.0070.01418.70
8.2.20.0140.00718.58
8.2.10.0190.00318.71
8.2.00.0080.00818.70
8.1.330.0120.00821.80
8.1.320.0120.00716.09
8.1.310.0070.00018.27
8.1.300.0030.00617.99
8.1.290.0090.00030.84
8.1.280.0130.00725.92
8.1.270.0140.00022.20
8.1.260.0030.01222.07
8.1.250.0070.00722.14
8.1.240.0090.00618.48
8.1.230.0070.00718.50
8.1.220.0100.00318.70
8.1.210.0120.00318.26
8.1.200.0120.00420.43
8.1.190.0100.00720.48
8.1.180.0160.00320.16
8.1.170.0110.00420.46
8.1.160.0140.00020.23
8.1.150.0100.00320.43
8.1.140.0100.00720.52
8.1.130.0100.00720.57
8.1.120.0080.00820.33
8.1.110.0160.00320.25
8.1.100.0120.00921.35
8.1.90.0070.00718.50
8.1.80.0060.00819.61
8.1.70.0100.00318.80
8.1.60.0110.00818.36
8.1.50.0060.01618.55
8.1.40.0120.00618.54
8.1.30.0040.01118.86
8.1.20.0110.00419.68
8.1.10.0070.00718.46
8.1.00.0110.00418.39
7.0.330.0150.00216.64

preferences:
76.29 ms | 403 KiB | 5 Q