3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = 'key=IAfpK, age=58, key=WNVdi, age=64, key=jp9zt, age=47'; $itemsOverFifty = []; if(preg_match_all('/age=(?<age>\d+)/', $data, $matches)) { $itemsOverFifty = array_filter($matches['age'], fn($item) => $item >= 50 ); } echo count($itemsOverFifty);

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.0070.01020.21
8.5.00.0150.00920.30
8.4.150.0020.00014.05
8.4.140.0080.01217.92
8.4.130.0050.00418.14
8.4.120.0110.01020.80
8.4.110.0130.00922.69
8.4.100.0090.01218.53
8.4.90.0130.00718.71
8.4.80.0140.00620.66
8.4.70.0060.00218.13
8.4.60.0140.00618.78
8.4.50.0130.00718.72
8.4.40.0130.00620.51
8.4.30.0130.00618.75
8.4.20.0100.01018.05
8.4.10.0060.00323.80
8.3.280.0150.00618.48
8.3.270.0130.01016.61
8.3.260.0100.01016.63
8.3.250.0110.00818.78
8.3.240.0060.00820.67
8.3.230.0100.00916.61
8.3.220.0110.00718.81
8.3.210.0090.00916.57
8.3.200.0070.00416.87
8.3.190.0080.01017.34
8.3.180.0110.00817.09
8.3.170.0140.00319.09
8.3.160.0180.00017.12
8.3.150.0130.00617.16
8.3.140.0060.01220.79
8.3.130.0080.00018.63
8.3.120.0040.00418.43
8.3.110.0000.00816.63
8.3.100.0060.00316.76
8.3.90.0100.01026.77
8.3.80.0060.00318.68
8.3.70.0060.00916.85
8.3.60.0150.00020.31
8.3.50.0140.00018.38
8.3.40.0130.00720.34
8.3.30.0080.00818.97
8.3.20.0000.00724.18
8.3.10.0040.00424.66
8.3.00.0050.00326.16
8.2.290.0110.00820.76
8.2.280.0090.00218.70
8.2.270.0150.00416.93
8.2.260.0140.00317.47
8.2.250.0100.01016.87
8.2.240.0030.00619.08
8.2.230.0030.00620.94
8.2.220.0080.00024.06
8.2.210.0000.00726.77
8.2.200.0090.00016.88
8.2.190.0090.00616.88
8.2.180.0060.00925.92
8.2.170.0070.01119.11
8.2.160.0100.01022.96
8.2.150.0040.00425.66
8.2.140.0070.00024.66
8.2.130.0030.00526.16
8.2.120.0080.00026.16
8.2.110.0060.00320.58
8.2.100.0080.00418.03
8.2.90.0040.00418.16
8.2.80.0000.00918.22
8.2.70.0040.00417.75
8.2.60.0080.00017.88
8.2.50.0030.00617.84
8.2.40.0030.01119.34
8.2.30.0120.00118.56
8.2.20.0080.00519.04
8.2.10.0110.00218.61
8.2.00.0080.00719.02
8.1.330.0080.01122.09
8.1.320.0110.01015.98
8.1.310.0090.00916.94
8.1.300.0070.00320.02
8.1.290.0080.00030.84
8.1.280.0190.00025.92
8.1.270.0040.00424.66
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0080.00022.03
8.1.230.0090.00322.11
8.1.220.0040.00417.74
8.1.210.0040.00418.78
8.1.200.0000.00917.48
8.1.190.0030.00617.47
8.1.180.0040.00418.10
8.1.170.0120.00418.77
8.1.160.0070.00618.77
8.1.150.0070.00618.78
8.1.140.0080.00518.16
8.1.130.0080.00618.63
8.1.120.0100.00318.36
8.1.110.0090.00518.38
8.1.100.0070.00618.19
8.1.90.0130.00318.37
8.1.80.0130.00318.30
8.1.70.0130.00318.26
8.1.60.0100.00818.40
8.1.50.0100.00818.28
8.1.40.0120.00518.37
8.1.30.0110.00718.37
8.1.20.0150.00318.29
8.1.10.0120.00618.36
8.1.00.0140.00318.25
8.0.300.0000.00720.04
8.0.290.0060.00316.75
8.0.280.0090.00418.11
8.0.270.0050.00917.71
8.0.260.0070.00718.03
8.0.250.0080.00517.57
8.0.240.0080.00517.61
8.0.230.0070.00617.65
8.0.220.0130.00317.56
8.0.210.0080.00717.61
8.0.200.0090.00717.52
8.0.190.0080.00817.59
8.0.180.0110.00517.53
8.0.170.0100.00617.70
8.0.160.0120.00417.61
8.0.150.0130.00317.63
8.0.140.0130.00217.58
8.0.130.0090.00817.65
8.0.120.0110.00417.68
8.0.110.0110.00317.60
8.0.100.0110.00517.49
8.0.90.0130.00317.52
8.0.80.0140.00217.56
8.0.70.0090.00617.50
8.0.60.0110.00417.62
8.0.50.0080.00717.49
8.0.30.0080.00717.59
8.0.20.0120.00317.66
8.0.10.0080.00917.69
7.4.330.0060.00516.93
7.4.320.0060.00717.30
7.4.300.0100.00517.32
7.4.290.0080.00517.39
7.4.280.0120.00317.31
7.4.270.0100.00417.38
7.4.260.0120.00317.31
7.4.250.0130.00417.37
7.4.240.0140.00217.33
7.4.230.0090.00717.29
7.4.220.0090.00617.37
7.4.210.0090.00517.31
7.4.200.0100.00417.34
7.4.190.0110.00317.36
7.4.180.0080.00717.32
7.4.160.0130.00217.43
7.4.150.0060.00817.34
7.4.140.0090.00617.30
7.4.130.0130.00117.38
7.4.120.0070.00817.40
7.4.110.0130.00217.32
7.4.100.0120.00317.38
7.4.90.0100.00417.32
7.4.80.0080.00617.31
7.4.70.0080.00817.29
7.4.60.0080.00717.31
7.4.50.0080.00617.31
7.4.40.0140.00117.35
7.4.30.0060.00717.28
7.4.20.0090.00517.31
7.4.10.0100.00517.31
7.4.00.0080.00617.30

preferences:
36.83 ms | 403 KiB | 5 Q