3v4l.org

run code in 300+ PHP versions simultaneously
<?php $lookup = [ '#online' => 'System is operating at peak performance.', '#performancedegradation' => 'Performance is slower than normal.', '#directonly' => 'Traffic is bypassing Smart CDN system, and going directly to websites.' ]; $regex = '/^(?:' . implode('|', array_keys($lookup)) . ')(?=\s)/m'; $contents = <<<TEXT #online System is operating at peak performance. #directonly Traffic is bypassing Smart CDN system, and going directly to websites. TEXT; $matches = preg_match_all($regex, $contents, $m) ? $m[0] : []; foreach ($matches as $keyword) { printf( '<div class="badge_subpage_system"><h5>%s</h5><p>%s</p></div>', $keyword, $lookup[$keyword] ); echo "\n"; }

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.0160.00417.82
8.4.120.0140.00520.61
8.4.110.0120.00622.50
8.4.100.0120.01118.02
8.4.90.0130.00717.94
8.4.80.0140.00618.00
8.4.70.0050.00318.06
8.4.60.0040.00518.64
8.4.50.0050.00517.96
8.4.40.0040.01417.87
8.4.30.0100.01020.48
8.4.20.0070.01417.85
8.4.10.0080.00025.86
8.3.260.0130.00716.79
8.3.250.0110.00818.91
8.3.240.0140.00516.95
8.3.230.0120.00816.77
8.3.220.0110.00717.38
8.3.210.0100.00516.76
8.3.200.0050.00416.62
8.3.190.0060.00217.21
8.3.180.0120.00816.81
8.3.170.0000.00817.02
8.3.160.0090.00918.41
8.3.150.0160.00316.64
8.3.140.0000.00917.30
8.3.130.0000.00818.65
8.3.120.0090.00019.00
8.3.110.0060.00316.61
8.3.100.0000.00820.25
8.3.90.0000.00826.77
8.3.80.0040.00419.36
8.3.70.0040.01216.75
8.3.60.0130.00618.55
8.3.50.0130.00523.73
8.3.40.0140.00418.96
8.3.30.0060.00918.91
8.3.20.0050.00324.18
8.3.10.0000.00724.66
8.3.00.0080.00026.16
8.2.290.0100.00920.45
8.2.280.0050.00520.16
8.2.270.0140.00416.93
8.2.260.0060.01218.85
8.2.250.0040.00418.79
8.2.240.0070.00418.39
8.2.230.0070.00720.94
8.2.220.0070.00324.06
8.2.210.0040.00726.77
8.2.200.0030.00618.88
8.2.190.0080.00818.54
8.2.180.0160.00425.92
8.2.170.0110.00419.06
8.2.160.0100.00322.96
8.2.150.0030.00525.66
8.2.140.0000.00824.66
8.2.130.0070.00026.16
8.2.120.0050.00326.35
8.2.110.0070.00322.27
8.2.100.0130.00017.83
8.2.90.0040.00418.16
8.2.80.0000.00918.05
8.2.70.0030.00617.88
8.2.60.0000.00917.91
8.2.50.0060.00318.05
8.2.40.0080.00018.34
8.2.30.0040.00418.25
8.2.20.0020.00518.30
8.2.10.0000.00719.41
8.2.00.0030.00619.36
8.1.330.0120.00718.20
8.1.320.0120.00816.48
8.1.310.0110.00418.64
8.1.300.0040.00416.66
8.1.290.0060.00330.84
8.1.280.0120.00625.92
8.1.270.0050.00323.81
8.1.260.0060.00328.09
8.1.250.0060.00328.09
8.1.240.0030.00623.92
8.1.230.0050.00522.63
8.1.220.0060.00317.77
8.1.210.0040.00418.77
8.1.200.0030.00617.34
8.1.190.0040.00417.35
8.1.180.0050.00318.10
8.1.170.0060.00320.10
8.1.160.0040.00418.98
8.1.150.0030.00518.86
8.1.140.0000.00719.04
8.1.130.0000.00717.63
8.1.120.0070.00017.53
8.1.110.0000.00717.52
8.1.100.0040.00417.53
8.1.90.0030.00517.66
8.1.80.0000.00817.68
8.1.70.0030.00517.61
8.1.60.0080.00017.76
8.1.50.0000.00917.57
8.1.40.0090.00017.70
8.1.30.0000.00717.72
8.1.20.0000.00717.66
8.1.10.0060.00317.66
8.1.00.0000.00717.57
8.0.300.0050.00220.03
8.0.290.0000.00817.13
8.0.280.0000.00718.55
8.0.270.0000.00818.23
8.0.260.0030.00318.73
8.0.250.0040.00417.10
8.0.240.0000.00817.15
8.0.230.0070.00017.20
8.0.220.0070.00017.12
8.0.210.0000.00717.04
8.0.200.0000.00717.25
8.0.190.0030.00517.08
8.0.180.0060.00317.11
8.0.170.0000.00917.14
8.0.160.0050.00217.12
8.0.150.0060.00617.07
8.0.140.0030.00717.08
8.0.130.0000.00513.63
8.0.120.0000.00817.07
8.0.110.0000.00717.13
8.0.100.0040.00417.02
8.0.90.0000.00717.10
8.0.80.0050.01217.09
8.0.70.0040.00416.98
8.0.60.0000.00717.11
8.0.50.0080.00017.01
8.0.30.0100.00717.35
8.0.20.0090.01217.34
8.0.10.0120.00617.39
8.0.00.0130.00717.18
7.4.330.0020.00215.55
7.4.320.0040.00416.82
7.4.300.0100.00016.72
7.4.290.0050.00216.56
7.4.280.0070.00416.78
7.4.270.0050.00216.84
7.4.260.0030.00313.57
7.4.250.0030.00316.70
7.4.240.0030.00316.75
7.4.230.0070.00016.95
7.4.220.0030.00416.90
7.4.210.0070.00716.73
7.4.200.0050.00216.80
7.4.140.0060.01516.45
7.4.130.0050.01416.75
7.4.120.0150.00316.87
7.4.110.0100.00716.73
7.4.100.0130.00316.81
7.4.90.0090.01316.76
7.4.80.0110.00716.43
7.4.70.0070.01316.66
7.4.60.0120.00816.42
7.4.50.0040.01516.58
7.4.40.0060.01616.49
7.4.30.0150.00316.48
7.4.20.0150.00716.43
7.4.10.0120.00816.54
7.4.00.0130.00616.86
7.3.330.0070.00016.66
7.3.320.0030.00313.29
7.3.310.0020.00516.40
7.3.300.0030.00316.46
7.3.290.0060.00916.53
7.3.260.0100.00916.53
7.3.250.0110.01116.46
7.3.240.0220.00016.39
7.3.230.0070.01016.55
7.3.220.0060.01216.59
7.3.210.0150.00316.50
7.3.200.0100.01016.55
7.3.190.0150.00316.43
7.3.180.0110.01116.46
7.3.170.0100.01016.34
7.3.160.0100.01316.44
7.3.150.0160.00316.64
7.3.140.0140.00616.48
7.3.130.0150.00616.46
7.3.120.0140.00616.38
7.3.110.0030.01616.38
7.3.100.0120.00916.39
7.3.90.0160.00416.39
7.3.80.0140.01116.54
7.3.70.0100.00916.44
7.3.60.0120.00616.41
7.3.50.0120.00816.44
7.3.40.0170.00216.51
7.3.30.0130.00916.60
7.3.20.0160.00316.42
7.3.10.0130.00516.55
7.3.00.0060.01316.41

preferences:
30.97 ms | 403 KiB | 5 Q