3v4l.org

run code in 300+ PHP versions simultaneously
<?php foreach (["file.bin", "file.no"] as $file) var_dump(preg_match("~\.bin$~", $file));

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.3.60.0090.00918.30
8.3.50.0100.01019.93
8.3.40.0090.00619.27
8.3.30.0170.00318.93
8.3.20.0000.00724.18
8.3.10.0070.00024.66
8.3.00.0000.00726.16
8.2.180.0140.00725.92
8.2.170.0070.00718.82
8.2.160.0110.00722.96
8.2.150.0070.00025.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00426.16
8.2.110.0000.00822.08
8.2.100.0080.00317.91
8.2.90.0000.00817.63
8.2.80.0030.00518.74
8.2.70.0040.00417.63
8.2.60.0080.00017.75
8.2.50.0040.00417.75
8.2.40.0080.00017.88
8.2.30.0070.00417.63
8.2.20.0040.00419.52
8.2.10.0040.00417.75
8.2.00.0070.00019.13
8.1.280.0080.00825.92
8.1.270.0050.00523.99
8.1.260.0050.00326.35
8.1.250.0000.00728.09
8.1.240.0060.00323.90
8.1.230.0050.00519.01
8.1.220.0080.00017.74
8.1.210.0050.00318.77
8.1.200.0050.00317.35
8.1.190.0030.00617.00
8.1.180.0060.00318.10
8.1.170.0040.00417.62
8.1.160.0000.00720.83
8.1.150.0040.00418.57
8.1.140.0040.00417.47
8.1.130.0000.00817.51
8.1.120.0080.00017.48
8.1.110.0000.00717.41
8.1.100.0040.00417.47
8.1.90.0040.00417.37
8.1.80.0000.00817.47
8.1.70.0040.00417.38
8.1.60.0000.00917.49
8.1.50.0040.00417.44
8.1.40.0000.00717.55
8.1.30.0040.00417.59
8.1.20.0030.00517.60
8.1.10.0020.00517.60
8.1.00.0040.00417.48
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0090.00018.00
8.0.270.0000.00716.89
8.0.260.0030.00316.88
8.0.250.0040.00316.92
8.0.240.0000.00616.90
8.0.230.0030.00316.89
8.0.220.0030.00316.79
8.0.210.0000.00816.86
8.0.200.0070.00016.91
8.0.190.0030.00517.00
8.0.180.0000.00817.00
8.0.170.0060.00317.02
8.0.160.0040.00416.97
8.0.150.0000.00716.95
8.0.140.0000.00816.88
8.0.130.0000.00613.37
8.0.120.0050.00313.42
8.0.110.0030.00313.34
8.0.100.0000.00613.34
8.0.90.0030.00513.40
8.0.80.0000.00613.34
8.0.70.0000.00813.40
8.0.60.0000.00713.44
8.0.50.0040.00413.41
8.0.30.0070.00013.34
8.0.20.0040.00413.52
8.0.10.0030.00313.52
8.0.00.0040.00413.51
7.4.330.0000.00515.55
7.4.320.0060.00316.59
7.4.300.0050.00316.67
7.4.290.0050.00316.44
7.4.280.0000.00716.56
7.4.270.0040.00416.68
7.4.260.0030.00313.34
7.4.250.0070.00013.34
7.4.240.0070.00013.36
7.4.230.0060.00013.29
7.4.220.0000.00713.46
7.4.210.0050.00313.37
7.4.200.0000.00713.25
7.4.190.0080.00013.43
7.4.180.0000.00613.40
7.4.160.0000.00713.41
7.4.150.0000.00713.53
7.4.140.0030.00313.32
7.4.130.0040.00413.34
7.4.120.0030.00313.36
7.4.110.0070.00213.37
7.4.100.0050.00413.48
7.4.90.0070.00213.36
7.4.80.0070.00213.30
7.4.70.0030.00613.27
7.4.60.0020.00713.30
7.4.50.0070.00013.40
7.4.40.0040.00413.25
7.4.30.0080.00013.32
7.4.20.0030.00313.21
7.4.10.0060.00013.22
7.4.00.0000.00813.19
7.3.330.0050.00216.34
7.3.320.0060.00013.30
7.3.310.0050.00513.21
7.3.300.0090.00413.13
7.3.290.0070.00713.06
7.3.280.0130.00013.13
7.3.270.0030.00612.86
7.3.260.0130.00013.15
7.3.250.0100.00313.06
7.3.240.0090.00312.84
7.3.230.0090.00312.89
7.3.220.0080.00512.95
7.3.210.0130.00012.78
7.3.200.0110.00013.07
7.3.190.0070.00412.90
7.3.180.0140.00013.24
7.3.170.0070.00613.00
7.3.160.0070.00313.01
7.3.150.0050.00513.06
7.3.140.0070.00212.97
7.3.130.0080.00212.95
7.3.120.0070.00312.84
7.3.110.0150.00012.76
7.3.100.0050.00713.07
7.3.90.0120.00013.50
7.3.80.0130.00012.85
7.3.70.0060.00613.17
7.3.60.0000.00913.03
7.3.50.0080.00512.97
7.3.40.0110.00013.32
7.3.30.0090.00513.25
7.3.20.0040.00715.02
7.3.10.0070.00715.11
7.3.00.0110.00014.93

preferences:
36.25 ms | 400 KiB | 5 Q