3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = ['.1','1.5','0.10','.8']; foreach($array as $a) { echo preg_replace('/^\.\d/','0$0', $a). PHP_EOL; }

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.0090.00818.76
8.5.00.0110.01120.33
8.4.150.0030.00014.05
8.4.140.0090.01217.87
8.4.130.0030.00618.78
8.4.120.0060.00320.66
8.4.110.0060.00318.95
8.4.100.0120.00918.14
8.4.90.0120.00818.95
8.4.80.0140.00717.93
8.4.70.0060.00317.80
8.4.60.0060.01618.74
8.4.50.0160.00719.52
8.4.40.0080.01218.03
8.4.30.0100.00720.34
8.4.20.0070.01117.93
8.4.10.0040.01219.63
8.3.280.0110.00918.43
8.3.270.0140.00816.76
8.3.260.0110.00416.69
8.3.250.0130.00619.00
8.3.240.0090.00920.74
8.3.230.0120.00816.60
8.3.220.0080.01017.04
8.3.210.0080.01016.70
8.3.200.0050.00616.93
8.3.190.0090.01018.99
8.3.180.0130.00516.69
8.3.170.0040.00420.55
8.3.160.0120.00618.68
8.3.150.0070.01316.44
8.3.140.0120.00617.00
8.3.130.0070.00318.77
8.3.120.0040.00419.04
8.3.110.0030.01220.94
8.3.100.0050.00524.06
8.3.90.0110.00726.77
8.3.80.0080.00318.55
8.3.70.0100.01316.58
8.3.60.0170.00318.56
8.3.50.0120.00618.54
8.3.40.0100.01020.00
8.3.30.0070.00718.60
8.3.20.0070.00024.18
8.3.10.0040.00424.66
8.3.00.0070.00026.16
8.2.290.0100.00920.40
8.2.280.0100.00918.59
8.2.270.0130.00717.00
8.2.260.0160.00318.68
8.2.250.0070.00716.64
8.2.240.0130.00718.90
8.2.230.0030.01222.58
8.2.220.0060.00337.54
8.2.210.0100.01026.77
8.2.200.0060.00316.75
8.2.190.0070.01116.58
8.2.180.0150.00625.92
8.2.170.0070.00719.09
8.2.160.0030.01022.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0080.00019.73
8.2.110.0060.00320.52
8.2.100.0070.00417.75
8.2.90.0000.00919.28
8.2.80.0050.00317.97
8.2.70.0060.00317.75
8.2.60.0050.00317.80
8.2.50.0030.00618.07
8.2.40.0000.00818.02
8.2.30.0030.00517.99
8.2.20.0000.00720.55
8.2.10.0000.00717.71
8.2.00.0040.00419.32
8.1.330.0090.01016.36
8.1.320.0110.01016.30
8.1.310.0040.00418.47
8.1.300.0130.00619.83
8.1.290.0040.00430.84
8.1.280.0030.01225.92
8.1.270.0080.00622.04
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0080.00023.98
8.1.230.0090.00320.88
8.1.220.0000.00817.80
8.1.210.0030.00518.77
8.1.200.0080.00317.36
8.1.190.0060.00617.36
8.1.180.0000.00918.10
8.1.170.0000.00818.67
8.1.160.0040.00418.90
8.1.150.0070.00018.78
8.1.140.0000.00717.64
8.1.130.0050.00318.82
8.1.120.0070.00317.32
8.1.110.0030.00517.58
8.1.100.0030.00417.48
8.1.90.0000.00717.60
8.1.80.0040.00417.64
8.1.70.0030.00317.59
8.1.60.0030.00517.63
8.1.50.0040.00417.63
8.1.40.0000.00817.67
8.1.30.0030.00617.80
8.1.20.0030.00617.63
8.1.10.0170.00417.60
8.1.00.0270.00017.55
8.0.300.0040.00418.77
8.0.290.0060.00316.88
8.0.280.0030.00318.46
8.0.270.0000.00717.08
8.0.260.0070.00018.47
8.0.250.0070.00016.93
8.0.240.0040.00417.09
8.0.230.0000.00717.02
8.0.220.0070.00017.02
8.0.210.0000.00717.04
8.0.200.0060.00017.11
8.0.190.0000.00816.97
8.0.180.0040.00417.04
8.0.170.0030.00617.13
8.0.160.0040.00416.93
8.0.150.0170.00316.83
8.0.140.0190.00617.01
8.0.130.0150.00716.85
8.0.120.0190.00616.96
8.0.110.0220.00016.92
8.0.100.0170.00617.02
8.0.90.0180.00616.89
8.0.80.0160.01017.09
8.0.70.0140.00917.02
8.0.60.0170.00417.02
8.0.50.0180.00516.95
8.0.30.0150.01016.92
8.0.20.0150.00717.06
8.0.10.0220.00317.02
7.4.330.0020.00215.55
7.4.320.0060.00016.79
7.4.300.0030.00716.67
7.4.290.0000.00716.71
7.4.280.0050.00316.80
7.4.270.0210.00416.56
7.4.260.0250.00016.67
7.4.250.0250.00016.71
7.4.240.0120.01216.63
7.4.230.0240.00016.79
7.4.220.0170.00716.79
7.4.210.0250.00016.77
7.4.200.0180.00516.73
7.4.190.0120.01116.85
7.4.180.0170.00416.75
7.4.160.0110.01116.71
7.4.150.0070.01516.79
7.4.140.0180.00316.71
7.4.130.0180.00416.73
7.4.120.0220.00016.75
7.4.110.0150.00516.47
7.4.100.0190.00316.74
7.4.90.0200.00316.59
7.4.80.0170.00416.61
7.4.70.0180.00316.73
7.4.60.0160.00416.63
7.4.50.0160.00616.44
7.4.40.0170.00316.52
7.4.30.0090.00416.56
7.4.20.0090.00316.46
7.4.10.0140.00016.65
7.4.00.0030.00716.49

preferences:
30.41 ms | 403 KiB | 5 Q