3v4l.org

run code in 300+ PHP versions simultaneously
<?php $output = 'tag: 7.x-2.x-1511112-53-combined tag: 7.x-2.x-1511112-50-static-cache-per-git-dir HEAD, tag: xxxx, origin/HEAD, origin/7.x-2.x, 7.x-2.x tag: 7.x-3.0--alpha5 tag: 7.x-2.2 tag: 7.x-2.1 tag: 7.x-2.0'; $lines = explode("\n", $output); $tag = NULL; foreach ($lines as $line) { $parts = explode(', ', $line); foreach ($parts as $part) { if (preg_match('/^tag: (\d+\.x\-\d+\.\d+(?:|\-\w+\d+))$/', $part, $m)) { $tag = $m[1]; break 2; } } } var_export($tag);

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.0100.01018.05
8.4.120.0120.00920.84
8.4.110.0110.00922.48
8.4.100.0060.00417.90
8.4.90.0160.00718.07
8.4.80.0090.00318.04
8.4.70.0090.00617.87
8.4.60.0100.01218.67
8.4.50.0110.00919.58
8.4.40.0130.00719.37
8.4.30.0090.00620.20
8.4.20.0030.00619.84
8.4.10.0100.01017.98
8.3.260.0100.00916.75
8.3.250.0120.00618.83
8.3.240.0080.01316.54
8.3.230.0100.00816.69
8.3.220.0100.01017.20
8.3.210.0070.00816.76
8.3.200.0040.00518.58
8.3.190.0110.01017.41
8.3.180.0080.01016.97
8.3.170.0030.01417.20
8.3.160.0060.01218.52
8.3.150.0100.00722.61
8.3.140.0040.00416.57
8.3.130.0080.00418.59
8.3.120.0030.00620.30
8.3.110.0070.00420.94
8.3.100.0080.00016.84
8.3.90.0030.01126.77
8.3.80.0100.00318.56
8.3.70.0060.01318.63
8.3.60.0060.00918.68
8.3.50.0110.00324.61
8.3.40.0130.00618.92
8.3.30.0140.00418.87
8.3.20.0060.00620.84
8.3.10.0040.00422.21
8.3.00.0080.00020.77
8.2.290.0100.00820.44
8.2.280.0120.00518.61
8.2.270.0030.00517.04
8.2.260.0050.00219.15
8.2.250.0080.00016.57
8.2.240.0060.00919.13
8.2.230.0000.00822.58
8.2.220.0070.00324.06
8.2.210.0050.00326.77
8.2.200.0060.00318.66
8.2.190.0140.00016.73
8.2.180.0120.00918.54
8.2.170.0110.00422.96
8.2.160.0030.01320.52
8.2.150.0040.01124.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0040.00426.16
8.2.110.0030.00620.51
8.2.100.0080.00817.58
8.2.90.0030.00620.43
8.2.80.0080.00018.16
8.2.70.0040.00418.16
8.2.60.0000.00818.22
8.2.50.0040.00418.10
8.2.40.0060.00321.33
8.2.30.0000.00819.21
8.2.20.0040.00418.20
8.2.10.0040.00419.09
8.2.00.0040.00419.24
8.1.330.0110.00618.45
8.1.320.0110.00916.50
8.1.310.0140.00316.76
8.1.300.0090.00616.19
8.1.290.0090.00018.88
8.1.280.0070.00725.92
8.1.270.0080.00022.51
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0110.00022.08
8.1.230.0070.00420.74
8.1.220.0050.00317.74
8.1.210.0040.00419.09
8.1.200.0030.00617.48
8.1.190.0030.00617.35
8.1.180.0030.00518.10
8.1.170.0030.00618.59
8.1.160.0050.00320.25
8.1.150.0000.00718.92
8.1.140.0000.00920.75
8.1.130.0040.00420.15
8.1.120.0070.00017.62
8.1.110.0030.00417.49
8.1.100.0000.00917.60
8.1.90.0000.00717.58
8.1.80.0080.00017.45
8.1.70.0040.00417.63
8.1.60.0030.00617.69
8.1.50.0040.00417.58
8.1.40.0030.00617.58
8.1.30.0090.00017.87
8.1.20.0000.00817.82
8.1.10.0040.00417.75
8.1.00.0040.00417.59
8.0.300.0050.00220.02
8.0.290.0080.00416.75
8.0.280.0070.00018.43
8.0.270.0000.00817.40
8.0.260.0000.00720.09
8.0.250.0030.00317.13
8.0.240.0000.00817.00
8.0.230.0030.00317.08
8.0.220.0000.00717.05
8.0.210.0070.00017.05
8.0.200.0000.00817.13
8.0.190.0040.00417.09
8.0.180.0030.00516.95
8.0.170.0000.00917.07
8.0.160.0030.00616.99
8.0.150.0030.00517.02
8.0.140.0070.00017.00
8.0.130.0080.00013.56
8.0.120.0090.00016.96
8.0.110.0050.00216.88
8.0.100.0050.00317.06
8.0.90.0060.00316.91
8.0.80.0110.00417.02
8.0.70.0000.00717.05
8.0.60.0000.00717.03
8.0.50.0050.00216.91
8.0.30.0100.00617.24
8.0.20.0110.01617.47
8.0.10.0070.00017.07
8.0.00.0100.01016.92
7.4.330.0000.00615.55
7.4.320.0060.00016.70
7.4.300.0030.00316.70
7.4.290.0070.00016.61
7.4.280.0050.00516.83
7.4.270.0000.00716.82
7.4.260.0050.00013.60
7.4.250.0030.00316.80
7.4.240.0050.00216.72
7.4.230.0040.00416.70
7.4.220.0040.00416.83
7.4.210.0080.00816.77
7.4.200.0000.00716.56
7.4.130.0070.01116.56
7.4.120.0090.00916.68
7.4.110.0120.00616.79
7.4.100.0170.00716.58
7.4.90.0070.01016.86
7.4.80.0120.01019.39
7.4.70.0080.00816.50
7.4.60.0140.00416.70
7.4.50.0000.01216.80
7.4.40.0180.00016.77
7.4.00.0060.00615.41
7.3.330.0030.00316.63
7.3.320.0060.00013.31
7.3.310.0040.00316.48
7.3.300.0000.00716.32
7.3.290.0070.00016.32
7.3.280.0070.01416.46
7.3.260.0080.01616.76
7.3.240.0110.00616.64
7.3.230.0140.00316.74
7.3.210.0130.01016.90
7.3.200.0110.00616.92
7.3.190.0090.00916.57
7.3.180.0080.00816.64
7.3.170.0060.01016.81
7.3.160.0090.01216.58
7.3.120.0060.01215.05
7.3.110.0040.01314.77
7.3.100.0080.00514.68
7.3.90.0050.01414.72
7.3.80.0030.01014.79
7.3.70.0040.00914.88
7.3.60.0100.00314.90
7.3.50.0100.00314.68
7.3.40.0060.00814.98
7.3.30.0000.01515.00
7.3.20.0040.01116.51
7.3.10.0090.00616.81
7.3.00.0030.01116.52
7.2.330.0140.00316.75
7.2.320.0080.01216.70
7.2.310.0100.01016.77
7.2.300.0100.01416.67
7.2.290.0100.01116.75
7.2.240.0060.01214.98
7.2.230.0040.01015.34
7.2.220.0100.00615.14
7.2.210.0140.00015.24
7.2.200.0030.01015.14
7.2.190.0060.00814.90
7.2.180.0090.00515.12
7.2.170.0090.00615.34
7.2.160.0060.00915.09
7.2.150.0030.01016.98
7.2.140.0090.00617.07
7.2.130.0030.01516.99
7.2.120.0090.00916.93
7.2.110.0100.01016.93
7.2.100.0160.00017.09
7.2.90.0100.01016.92
7.2.80.0090.00617.23
7.2.70.0080.00717.28
7.2.60.0120.00317.05
7.2.50.0040.01116.77
7.2.40.0060.00817.18
7.2.30.0060.00916.97
7.2.20.0060.00917.15
7.2.10.0070.00717.25
7.2.00.0070.00717.33
7.1.330.0070.00715.72
7.1.320.0060.00616.07
7.1.310.0110.00316.21
7.1.300.0030.00915.86
7.1.290.0050.00816.14
7.1.280.0060.00816.02
7.1.270.0070.00715.96
7.1.260.0000.01316.03
7.1.250.0160.00315.82

preferences:
35.57 ms | 403 KiB | 5 Q