3v4l.org

run code in 500+ PHP versions simultaneously
<?php $text = "name:value|name1:value1|name2:value2"; $result = ""; if (preg_match('~\bname2:([^|]*)~', $text, $m)) { $result = $m[1]; } echo $result;

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.70.0100.00716.93
8.5.60.0130.00516.82
8.5.50.0090.00916.74
8.5.30.0080.01118.95
8.5.20.0080.01019.49
8.5.10.0070.01018.69
8.5.00.0130.00820.33
8.4.180.0170.00422.04
8.4.170.0090.01320.55
8.4.160.0030.00722.13
8.4.150.0060.00716.90
8.4.140.0140.00717.70
8.4.130.0080.00618.00
8.4.120.0060.00324.21
8.4.110.0100.01022.50
8.4.100.0120.00918.92
8.4.90.0100.00918.98
8.4.80.0070.00718.56
8.4.70.0110.00918.16
8.4.60.0150.00818.73
8.4.50.0110.00918.61
8.4.40.0030.01018.09
8.4.30.0030.01720.45
8.4.20.0120.00618.05
8.4.10.0070.01419.68
8.3.300.0070.00220.88
8.3.290.0080.01220.93
8.3.280.0070.01218.61
8.3.270.0140.00816.64
8.3.260.0050.00416.62
8.3.250.0120.00618.73
8.3.240.0110.00517.07
8.3.230.0120.00617.01
8.3.220.0090.00818.79
8.3.210.0090.00916.57
8.3.200.0060.00316.56
8.3.190.0110.00717.02
8.3.180.0090.01017.09
8.3.170.0070.01120.55
8.3.160.0060.01216.55
8.3.150.0130.00617.10
8.3.140.0140.00416.34
8.3.130.0060.00318.53
8.3.120.0030.01220.54
8.3.110.0130.01316.75
8.3.100.0040.00724.06
8.3.90.0060.01326.77
8.3.80.0000.00816.58
8.3.70.0090.00916.61
8.3.60.0180.00318.31
8.3.50.0070.00720.13
8.3.40.0120.00319.25
8.3.30.0070.01118.83
8.3.20.0070.00024.18
8.3.10.0040.00424.66
8.3.00.0080.00026.16
8.2.300.0150.00622.10
8.2.290.0080.00920.55
8.2.280.0090.01218.63
8.2.270.0130.00617.40
8.2.260.0080.00016.71
8.2.250.0180.00018.66
8.2.240.0090.00619.04
8.2.230.0090.00020.94
8.2.220.0040.00437.54
8.2.210.0100.01026.77
8.2.200.0030.00616.75
8.2.190.0120.00916.58
8.2.180.0130.00325.92
8.2.170.0110.00418.97
8.2.160.0100.00322.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0050.00226.16
8.2.120.0000.00819.79
8.2.110.0080.00419.45
8.2.100.0040.00817.97
8.2.90.0030.00517.75
8.2.80.0060.00318.91
8.2.70.0030.00517.88
8.2.60.0090.00017.93
8.2.50.0000.00818.07
8.2.40.0000.00818.16
8.2.30.0000.00718.20
8.2.20.0030.00519.50
8.2.10.0040.00418.03
8.2.00.0000.00719.32
8.1.340.0110.01017.82
8.1.330.0130.00721.93
8.1.320.0100.00818.49
8.1.310.0000.00818.15
8.1.300.0070.01120.30
8.1.290.0040.00418.88
8.1.280.0150.00025.92
8.1.270.0030.00523.99
8.1.260.0030.00626.35
8.1.250.0050.00328.09
8.1.240.0080.00819.54
8.1.230.0070.00419.01
8.1.220.0000.00717.78
8.1.210.0030.00618.77
8.1.200.0060.00317.25
8.1.190.0050.00317.35
8.1.180.0080.00018.10
8.1.170.0000.00818.65
8.1.160.0060.00318.88
8.1.150.0000.00818.68
8.1.140.0050.00217.39
8.1.130.0050.00317.47
8.1.120.0050.00317.46
8.1.110.0050.00217.54
8.1.100.0030.00317.58
8.1.90.0050.00217.43
8.1.80.0030.00517.56
8.1.70.0030.00317.42
8.1.60.0080.00017.72
8.1.50.0030.00617.61
8.1.40.0000.00817.62
8.1.30.0030.00517.77
8.1.20.0030.00617.63
8.1.10.0030.00617.74
8.1.00.0040.00417.51
8.0.300.0030.00518.77
8.0.290.0050.00316.88
8.0.280.0030.00318.38
8.0.270.0040.00418.13
8.0.260.0070.00017.00
8.0.250.0030.00317.13
8.0.240.0040.00417.11
8.0.230.0030.00316.93
8.0.220.0000.00716.84
8.0.210.0040.00416.96
8.0.200.0080.00016.99
8.0.190.0040.00416.98
8.0.180.0040.00416.88
8.0.170.0060.00317.04
8.0.160.0000.00716.97
8.0.150.0000.00716.79
8.0.140.0070.00316.79
8.0.130.0000.00513.39
8.0.120.0040.00413.30
8.0.110.0090.00313.40
8.0.100.0050.00913.38
8.0.90.0090.00413.38
8.0.80.0000.01213.38
8.0.70.0090.00313.32
8.0.60.0060.00613.31
8.0.50.0090.00413.39
8.0.30.0090.00313.38
8.0.20.0040.00913.53
8.0.10.0130.00013.45
8.0.00.0050.00313.50
7.4.330.0000.00615.55
7.4.320.0040.00416.72
7.4.300.0030.00316.71
7.4.290.0000.00716.73
7.4.280.0030.00616.73
7.4.270.0040.00416.73
7.4.260.0060.00013.31
7.4.250.0080.00813.43
7.4.240.0120.00313.34
7.4.230.0100.00513.49
7.4.220.0140.00013.45
7.4.210.0080.00513.42
7.4.200.0040.00813.40
7.4.190.0130.00013.39
7.4.180.0040.00913.50
7.4.160.0100.00313.47
7.4.150.0130.00013.39
7.4.140.0080.00413.30
7.4.130.0060.00213.40
7.4.120.0110.00013.32
7.4.110.0000.01013.39
7.4.100.0030.00813.39
7.4.90.0050.00513.29
7.4.80.0060.00613.41
7.4.70.0070.00313.49
7.4.60.0060.00313.25
7.4.50.0090.00313.17
7.4.40.0120.00013.27
7.4.30.0000.01113.45
7.4.20.0070.00313.31
7.4.10.0000.01213.33
7.4.00.0080.00213.34
7.3.330.0030.00316.30
7.3.320.0060.00313.17
7.3.310.0090.00013.33
7.3.300.0080.00313.18
7.3.290.0030.00613.11
7.3.280.0090.00313.29
7.3.270.0040.00513.15
7.3.260.0090.00013.27
7.3.250.0100.00013.22
7.3.240.0110.00013.20
7.3.230.0050.00513.16
7.3.220.0040.00613.05
7.3.210.0060.00613.25
7.3.200.0080.00313.11
7.3.190.0050.00513.21
7.3.180.0050.00513.05
7.3.170.0080.00313.27
7.3.160.0110.00013.28
7.3.150.0070.00312.95
7.3.140.0050.00513.00
7.3.130.0090.00313.23
7.3.120.0080.00313.11
7.3.110.0060.00513.07
7.3.100.0060.00313.12
7.3.90.0100.00013.27
7.3.80.0090.00213.32
7.3.70.0100.00013.28
7.3.60.0030.00613.37
7.3.50.0090.00013.27
7.3.40.0070.00313.22
7.3.30.0040.00413.43
7.3.20.0060.00315.26
7.3.10.0080.00315.21
7.3.00.0030.00815.20

preferences:
52.1 ms | 1379 KiB | 5 Q