3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text="('x-csrf-token', 'whatever')"; preg_match("/x-csrf-token',\s*'([^']+)/mi",$text,$matches); $token=$matches[1]; var_dump($token);

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.3.70.0120.00316.63
8.3.60.0060.01216.75
8.3.50.0100.00720.16
8.3.40.0040.01119.04
8.3.30.0070.00719.26
8.3.20.0140.00424.92
8.3.10.0080.00725.16
8.3.00.0100.00525.91
8.2.190.0110.00716.75
8.2.180.0090.00625.92
8.2.170.0150.00419.09
8.2.160.0070.00722.96
8.2.150.0170.00725.66
8.2.140.0060.00925.16
8.2.130.0070.00725.91
8.2.120.0140.00323.45
8.2.110.0040.01224.00
8.2.100.0140.00821.77
8.2.90.0110.01021.71
8.2.80.0050.01122.28
8.2.70.0170.00621.77
8.2.60.0080.00721.77
8.2.50.0170.00521.87
8.2.40.0140.00621.91
8.2.30.0100.00421.92
8.2.20.0060.00623.00
8.2.10.0090.00521.87
8.2.00.0050.00722.40
8.1.280.0070.01025.92
8.1.270.0050.00723.93
8.1.260.0090.00426.01
8.1.250.0070.00926.88
8.1.240.0150.00522.12
8.1.230.0120.00622.38
8.1.220.0110.00321.70
8.1.210.0070.00922.22
8.1.200.0100.00321.51
8.1.190.0090.00521.53
8.1.180.0120.00521.88
8.1.170.0090.00322.10
8.1.160.0090.00522.27
8.1.150.0090.00722.18
8.1.140.0150.00321.62
8.1.130.0110.00622.26
8.1.120.0060.00821.63
8.1.110.0070.01021.59
8.1.100.0130.00621.57
8.1.90.0040.01021.60
8.1.80.0070.00921.54
8.1.70.0120.00521.62
8.1.60.0130.00621.66
8.1.50.0080.01021.66
8.1.40.0170.00721.58
8.1.30.0220.00521.61
8.1.20.0290.00021.67
8.1.10.0220.01021.56
8.1.00.0150.00721.55
8.0.300.0110.00322.22
8.0.290.0140.00421.21
8.0.280.0140.00822.03
8.0.270.0040.00721.81
8.0.260.0080.00822.03
8.0.250.0050.00521.30
8.0.240.0140.00221.39
8.0.230.0090.00521.33
8.0.220.0060.00721.25
8.0.210.0130.00621.33
8.0.200.0100.00321.36
8.0.190.0170.00521.32
8.0.180.0080.00421.32
8.0.170.0140.00621.26
8.0.160.0110.00521.26
8.0.150.0210.00721.22
8.0.140.0150.00721.24
8.0.130.0220.00521.22
8.0.120.0220.00721.22
8.0.110.0150.00521.30
8.0.100.0200.00221.23
8.0.90.0190.00921.28
8.0.80.0110.00721.29
8.0.70.0090.01021.19
8.0.60.0200.00321.18
8.0.50.0190.00621.23
8.0.30.0160.00321.25
8.0.20.0170.00221.28
8.0.10.0190.00521.34
7.4.330.0090.00620.61
7.4.320.0140.00421.16
7.4.300.0170.00321.14
7.4.290.0150.00421.17
7.4.280.0190.00321.15
7.4.270.0160.01321.11
7.4.260.0210.00621.15
7.4.250.0250.00521.14
7.4.240.0290.00723.54
7.4.230.0220.00421.15
7.4.220.0180.00821.16
7.4.210.0210.00823.51
7.4.200.0170.00521.12
7.4.190.0150.00721.18
7.4.180.0260.00321.14
7.4.160.0230.00821.13
7.4.150.0160.00921.16
7.4.140.0160.00721.08
7.4.130.0190.00521.13
7.4.120.0170.00921.15
7.4.110.0200.00421.09
7.4.100.0170.00721.16
7.4.90.0200.00621.12
7.4.80.0170.00721.09
7.4.70.0210.00221.05
7.4.60.0230.00721.15
7.4.50.0160.00821.04
7.4.40.0240.00321.01
7.4.30.0190.00721.07
7.4.20.0190.00521.04
7.4.10.0200.00521.12
7.4.00.0210.00720.98

preferences:
33.01 ms | 401 KiB | 5 Q