3v4l.org

run code in 300+ PHP versions simultaneously
<?php $strings = [ 'a', 'ab', 'abc' ]; var_export(preg_replace('/(.)(.*)(.)/', '$3$2$1', $strings));

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.140.0150.00617.69
8.4.130.0150.00617.96
8.4.120.0110.01020.49
8.4.110.0100.01022.34
8.4.100.0070.00418.15
8.4.90.0110.00918.81
8.4.80.0090.00718.07
8.4.70.0090.01017.98
8.4.60.0050.00319.06
8.4.50.0090.01117.64
8.4.40.0130.00620.70
8.4.30.0060.01222.07
8.4.20.0100.01018.12
8.4.10.0080.00821.75
8.3.270.0120.00816.54
8.3.260.0110.01016.45
8.3.250.0120.00518.73
8.3.240.0100.01016.50
8.3.230.0130.00616.69
8.3.220.0140.00417.02
8.3.210.0030.00416.54
8.3.200.0080.00516.54
8.3.190.0040.00519.03
8.3.180.0080.00216.45
8.3.170.0150.00318.73
8.3.160.0120.00616.57
8.3.150.0110.00718.79
8.3.140.0140.00416.46
8.3.130.0040.00418.24
8.3.120.0080.00018.86
8.3.110.0090.00620.94
8.3.100.0000.00924.06
8.3.90.0080.00026.77
8.3.80.0090.00017.97
8.3.70.0200.00718.53
8.3.60.0120.00316.49
8.3.50.0170.00318.59
8.3.40.0030.01020.07
8.3.30.0090.00918.70
8.3.20.0040.00424.18
8.3.10.0050.00224.66
8.3.00.0040.00426.16
8.2.290.0100.00620.19
8.2.280.0110.00918.21
8.2.270.0090.00917.14
8.2.260.0140.00420.45
8.2.250.0000.00816.91
8.2.240.0080.00017.00
8.2.230.0030.00722.58
8.2.220.0030.00737.54
8.2.210.0070.00326.77
8.2.200.0060.00316.50
8.2.190.0100.00516.63
8.2.180.0090.00618.41
8.2.170.0090.00618.92
8.2.160.0100.00322.96
8.2.150.0110.00325.66
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0050.00319.56
8.2.110.0060.00319.30
8.2.100.0090.00319.54
8.2.90.0070.00317.75
8.2.80.0040.00418.04
8.2.70.0060.00317.63
8.2.60.0180.00017.50
8.2.50.0160.00017.25
8.2.40.0190.00017.50
8.2.30.0160.00017.38
8.2.20.0080.00817.38
8.2.10.0050.01117.50
8.2.00.0160.00017.38
8.1.330.0110.00722.04
8.1.320.0100.00916.55
8.1.310.0100.00716.38
8.1.300.0060.00318.13
8.1.290.0040.00430.84
8.1.280.0160.00325.92
8.1.270.0040.00424.66
8.1.260.0000.00826.35
8.1.250.0000.00728.09
8.1.240.0170.00323.78
8.1.230.0040.00722.68
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0030.00617.23
8.1.190.0130.00417.00
8.1.180.0110.00816.88
8.1.170.0170.00017.11
8.1.160.0090.00917.38
8.1.150.0140.00317.38
8.1.140.0050.01017.47
8.1.130.0120.00417.38
8.1.120.0130.00317.13
8.1.110.0190.00017.38
8.1.100.0140.00717.37
8.1.90.0120.00417.35
8.1.80.0090.00917.47
8.1.70.0160.00017.47
8.1.60.0140.00417.50
8.1.50.0140.00317.50
8.1.40.0170.00017.50
8.1.30.0150.00417.38
8.1.20.0130.00417.38
8.1.10.0120.00917.25
8.1.00.0150.00317.23
8.0.300.0060.00319.89
8.0.290.0000.00816.75
8.0.280.0170.00016.62
8.0.270.0080.00816.52
8.0.260.0110.00616.88
8.0.250.0160.00016.52
8.0.240.0070.01016.52
8.0.230.0120.00516.88
8.0.220.0150.00416.63
8.0.210.0120.00616.59
8.0.200.0070.01116.88
8.0.190.0140.00316.88
8.0.180.0150.00416.63
8.0.170.0140.00316.75
8.0.160.0170.00316.61
8.0.150.0090.00916.52
8.0.140.0080.00816.61
8.0.130.0090.00716.86
8.0.120.0100.00716.52
8.0.110.0120.00316.52
8.0.100.0150.00316.52
8.0.90.0060.01016.52
8.0.80.0130.00316.63
8.0.70.0040.01316.75
8.0.60.0070.01016.63
8.0.50.0120.00416.52
8.0.30.0160.00016.75
8.0.20.0160.00016.75
8.0.10.0120.00416.61

preferences:
32.32 ms | 403 KiB | 5 Q