3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = ["a", "b", "c", "d", "f"]; var_export( preg_replace('#$#', '_M', $array) );

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.4.130.0090.00618.04
8.4.120.0140.00520.36
8.4.110.0140.00618.95
8.4.100.0050.00417.73
8.4.90.0130.00818.32
8.4.80.0140.00619.78
8.4.70.0120.00717.77
8.4.60.0070.00318.68
8.4.50.0160.00517.50
8.4.40.0150.00618.95
8.4.30.0130.00624.07
8.4.20.0080.01219.38
8.4.10.0060.01319.22
8.3.260.0110.00716.70
8.3.250.0100.00918.73
8.3.240.0120.00716.86
8.3.230.0120.00716.63
8.3.220.0080.01116.92
8.3.210.0030.00416.58
8.3.200.0130.00716.76
8.3.190.0100.00816.96
8.3.180.0140.01016.69
8.3.170.0030.01517.36
8.3.160.0130.01018.89
8.3.150.0120.00616.99
8.3.140.0080.00016.69
8.3.130.0080.00016.77
8.3.120.0360.00716.46
8.3.110.0360.01116.36
8.3.100.0380.01016.48
8.3.90.0290.00316.60
8.3.80.0330.00916.53
8.3.70.0450.00316.30
8.3.60.0270.01516.57
8.3.50.0350.01116.55
8.3.40.0260.01117.54
8.3.30.0330.00617.63
8.3.20.0170.01717.59
8.3.10.0230.01317.63
8.3.00.0150.00817.62
8.2.290.0110.01120.29
8.2.280.0030.00518.09
8.2.270.0070.01116.55
8.2.260.0040.00417.26
8.2.250.0040.01218.65
8.2.240.0210.00416.39
8.2.230.0080.01316.57
8.2.220.0170.00416.75
8.2.210.0220.00016.25
8.2.200.0150.01216.47
8.2.190.0270.00316.48
8.2.180.0240.00616.48
8.2.170.0360.00317.66
8.2.160.0230.01317.61
8.2.150.0300.00417.48
8.2.140.0210.01417.43
8.2.130.0320.00317.48
8.2.120.0150.00417.55
8.2.110.0190.01217.71
8.2.100.0330.00717.49
8.2.90.0290.01317.52
8.2.80.0370.00317.49
8.2.70.0330.00917.45
8.2.60.0370.00417.47
8.2.50.0340.00617.58
8.2.40.0300.00317.34
8.2.30.0290.00717.50
8.2.20.0380.01017.51
8.2.10.0190.01917.36
8.2.00.0300.00717.42
8.1.330.0140.00721.88
8.1.320.0180.00716.46
8.1.310.0070.01018.25
8.1.300.0320.01016.01
8.1.290.0310.00815.91
8.1.280.0370.00316.17
8.1.270.0360.00917.27
8.1.260.0340.00717.42
8.1.250.0390.01017.19
8.1.240.0160.01317.32
8.1.230.0250.00617.04
8.1.220.0310.00917.30
8.1.210.0270.00517.29
8.1.200.0230.01117.05
8.1.190.0240.01317.26
8.1.180.0260.01117.30
8.1.170.0310.00317.45
8.1.160.0210.01217.32
8.1.150.0370.00017.22
8.1.140.0150.00317.39
8.1.130.0310.00017.39
8.1.120.0330.00417.55
8.1.110.0270.00417.27
8.1.100.0270.00417.27
8.1.90.0250.01117.24
8.1.80.0270.01017.45
8.1.70.0240.01217.40
8.1.60.0390.00317.52
8.1.50.0340.00717.38
8.1.40.0380.00317.48
8.1.30.0360.00817.55
8.1.20.0310.00817.54
8.1.10.0320.00617.44
8.1.00.0270.01317.21

preferences:
45.53 ms | 403 KiB | 5 Q