3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'I(0,123...789){ A(0,567...999){.......n=Marc.....} B(2,655...265){..................} C(3,993...333){..................} M(8,635...254){.................;} } O(0,345...789){ A(0,567...999){.......n=Marc.....} B(2,876...775){..................} C(3,993...549){..................} M(8,354...987){.................;} } I(0,987...764){ A(0,567...999){.......n=Marc.....} B(2,543...265){..................} C(7,998...933){..................} M(8,645...284){.................;} } B(0,123...789){ ....... } I(0,987...764){ A(0,567...999){.......n=John.....} B(2,543...265){..................} C(7,998...933){..................} M(8,645...284){.................;} }'; $res = preg_grep('/^I.*n=Marc/s', preg_split('/^}\R(?=[A-Z])/m', $str)); print_r($res);

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.30.0090.00819.34
8.5.20.0110.00919.48
8.5.10.0090.00818.50
8.5.00.0140.00720.27
8.4.180.0130.01019.76
8.4.170.0160.00523.88
8.4.160.0130.00823.95
8.4.150.0080.00416.91
8.4.140.0120.00917.73
8.4.130.0130.00817.91
8.4.120.0090.00822.32
8.4.110.0140.00522.52
8.4.100.0100.01117.70
8.4.90.0100.00618.50
8.4.80.0140.00717.84
8.4.70.0130.00718.14
8.4.60.0090.00618.59
8.4.50.0070.00517.80
8.4.40.0050.00319.43
8.4.30.0030.01622.53
8.4.20.0030.01724.16
8.4.10.0030.00619.80
8.3.300.0120.00720.94
8.3.290.0050.00420.95
8.3.280.0130.00718.56
8.3.270.0160.00316.62
8.3.260.0130.00516.61
8.3.250.0120.00618.74
8.3.240.0080.01116.73
8.3.230.0090.01116.80
8.3.220.0050.00416.92
8.3.210.0050.00616.44
8.3.200.0060.00216.81
8.3.190.0080.01120.93
8.3.180.0130.00616.78
8.3.170.0070.00417.04
8.3.160.0050.00318.61
8.3.150.0000.00817.28
8.3.140.0040.01517.00
8.3.130.0080.00018.85
8.3.120.0040.01118.75
8.3.110.0090.00020.94
8.3.100.0090.00616.85
8.3.90.0040.00418.64
8.3.80.0070.00318.36
8.3.70.0110.00418.43
8.3.60.0100.00718.43
8.3.50.0170.00617.37
8.3.40.0140.00318.89
8.3.30.0140.00018.81
8.3.20.0000.00821.92
8.3.10.0050.00321.75
8.3.00.0080.00023.52
8.2.300.0100.01218.71
8.2.290.0120.00720.50
8.2.280.0060.00218.46
8.2.270.0060.01216.86
8.2.260.0110.00716.60
8.2.250.0110.00818.71
8.2.240.0060.00318.96
8.2.230.0110.00422.58
8.2.220.0000.01024.06
8.2.210.0110.00726.77
8.2.200.0000.00916.63
8.2.190.0070.01018.69
8.2.180.0040.01117.00
8.2.170.0040.01122.96
8.2.160.0100.00720.39
8.2.150.0070.00324.18
8.2.140.0110.00724.66
8.2.130.0040.00426.16
8.2.120.0030.00626.16
8.2.110.0070.00320.35
8.2.100.0060.00617.84
8.2.90.0040.00417.75
8.2.80.0000.00818.90
8.2.70.0060.00317.50
8.2.60.0040.00417.93
8.2.50.0090.00318.07
8.2.40.0000.01020.07
8.2.30.0040.00418.04
8.2.20.0040.00418.01
8.2.10.0000.00719.20
8.2.00.0070.00019.32
8.1.340.0110.00823.44
8.1.330.0070.00121.63
8.1.320.0090.01016.26
8.1.310.0060.00316.55
8.1.300.0060.00318.41
8.1.290.0060.00318.88
8.1.280.0110.00325.92
8.1.270.0030.00521.98
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00318.96
8.1.230.0110.00017.77
8.1.220.0040.00417.74
8.1.210.0090.00018.77
8.1.200.0030.00617.38
8.1.190.0050.00317.35
8.1.180.0000.00718.10
8.1.170.0000.00818.64
8.1.160.0070.00018.87
8.1.150.0040.00418.90
8.1.140.0000.00718.77
8.1.130.0000.00719.98
8.1.120.0000.00817.56
8.1.110.0000.01017.49
8.1.100.0040.00417.42
8.1.90.0040.00517.44
8.1.80.0000.00917.45
8.1.70.0030.00617.61
8.1.60.0030.00517.67
8.1.50.0030.00617.62
8.1.40.0040.00417.55
8.1.30.0080.00017.66
8.1.20.0070.00817.72
8.1.10.0020.00517.57
8.1.00.0000.00717.43
8.0.300.0100.00018.77
8.0.290.0040.00416.75
8.0.280.0030.00318.37
8.0.270.0070.00017.23
8.0.260.0030.00318.41
8.0.250.0030.00617.07
8.0.240.0080.00016.93
8.0.230.0030.00317.07
8.0.220.0070.00016.88
8.0.210.0000.00716.86
8.0.200.0030.00317.06
8.0.190.0050.00217.07
8.0.180.0070.00017.02
8.0.170.0000.00916.92
8.0.160.0100.00017.00
8.0.150.0050.00216.86
8.0.140.0000.00716.87
8.0.130.0000.00613.49
8.0.120.0070.00016.98
8.0.110.0040.00416.95
8.0.100.0000.00816.76
8.0.90.0000.00716.89
8.0.80.0040.01216.95
8.0.70.0050.00316.80
8.0.60.0050.00317.09
8.0.50.0080.00017.04
8.0.30.0060.01217.21
8.0.20.0120.01417.04
8.0.10.0040.00417.06
8.0.00.0080.01016.78
7.4.330.0000.00515.55
7.4.320.0000.00616.73
7.4.300.0030.00316.55
7.4.290.0030.00316.70
7.4.280.0000.00816.74
7.4.270.0060.00616.67
7.4.260.0030.00316.65
7.4.250.0050.00316.77
7.4.240.0060.00216.59
7.4.230.0030.00316.86
7.4.220.0030.00516.74
7.4.210.0080.01016.73
7.4.200.0070.00016.55
7.4.160.0100.00716.68
7.4.130.0130.00516.54
7.4.120.0070.01116.64
7.4.110.0090.00916.52
7.4.100.0070.01016.79
7.4.90.0040.01216.63
7.4.80.0060.01219.39
7.4.70.0100.00616.63
7.4.60.0060.01216.86
7.4.50.0120.00316.46
7.4.40.0120.00916.53
7.4.00.0030.01315.19
7.3.330.0020.00213.19
7.3.320.0030.00313.11
7.3.310.0070.00016.22
7.3.300.0030.00316.31
7.3.290.0060.01116.31
7.3.280.0060.01116.26
7.3.260.0120.00716.34
7.3.240.0080.01016.33
7.3.230.0060.01216.48
7.3.210.0110.00716.52
7.3.200.0040.01416.73
7.3.190.0090.00916.45
7.3.180.0130.00616.23
7.3.170.0100.01316.27
7.3.160.0100.00616.44
7.3.60.0070.00714.79
7.3.50.0070.00714.63
7.3.40.0070.00314.82
7.3.30.0100.01014.81
7.3.20.0040.01116.57
7.3.10.0090.00316.64
7.3.00.0130.01116.68
7.2.330.0040.01416.48
7.2.320.0200.00716.67
7.2.310.0060.01116.73
7.2.300.0040.01316.73
7.2.290.0090.01316.54
7.2.190.0000.01414.98
7.2.180.0100.00314.82
7.2.170.0030.00714.99
7.2.160.0070.00715.11
7.2.150.0100.01016.82
7.2.140.0080.00816.71
7.2.130.0040.00817.01
7.2.120.0120.00316.95
7.2.110.0070.00416.79
7.2.100.0100.00316.99
7.2.90.0070.00716.95
7.2.80.0030.00916.93
7.2.70.0030.00917.01
7.2.60.0030.00816.50
7.2.50.0090.00616.96
7.2.40.0090.00317.05
7.2.30.0070.00416.93
7.2.20.0160.00616.66
7.2.10.0060.01016.95
7.2.00.0060.00916.91
7.1.300.0030.00915.56
7.1.290.0000.01315.88
7.1.280.0100.00015.78
7.1.270.0000.01015.76
7.1.260.0100.00015.76
7.1.250.0000.01415.76

preferences:
45.67 ms | 1503 KiB | 5 Q