3v4l.org

run code in 300+ PHP versions simultaneously
<?php $attr = '@C_1_2=Client'; $d = 'C_1_2: Client'; if (preg_match('/\@(.*)=(.*)/', $attr, $matches)) { // check corresponding values $tmp_attr = trim($matches[1]); $tmp_value = trim($matches[2]); if (preg_match("/$tmp_attr:$tmp_value/", $d)) { echo 'yes'; } }

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.60.0110.00416.63
8.3.50.0140.00016.49
8.3.40.0120.00319.09
8.3.30.0150.00318.79
8.3.20.0000.00721.76
8.3.10.0040.00423.61
8.3.00.0080.00019.69
8.2.180.0140.00018.41
8.2.170.0030.01022.96
8.2.160.0070.00720.53
8.2.150.0080.00024.18
8.2.140.0050.00224.66
8.2.130.0000.00720.38
8.2.120.0070.00026.35
8.2.110.0060.00322.37
8.2.100.0040.00818.03
8.2.90.0080.00019.05
8.2.80.0030.00517.97
8.2.70.0030.00517.88
8.2.60.0030.00517.93
8.2.50.0050.00318.10
8.2.40.0000.00720.42
8.2.30.0000.00719.24
8.2.20.0040.00418.04
8.2.10.0040.00418.17
8.2.00.0040.00418.19
8.1.280.0180.00325.92
8.1.270.0040.00418.83
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0000.00921.04
8.1.230.0080.00417.77
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0070.00317.35
8.1.190.0000.00817.35
8.1.180.0060.00318.10
8.1.170.0050.00318.56
8.1.160.0000.00818.98
8.1.150.0000.00920.63
8.1.140.0020.00519.61
8.1.130.0000.00720.49
8.1.120.0040.00417.46
8.1.110.0030.00517.43
8.1.100.0030.00517.60
8.1.90.0060.00317.49
8.1.80.0000.00717.60
8.1.70.0070.00017.60
8.1.60.0080.00017.70
8.1.50.0000.00717.64
8.1.40.0050.00317.63
8.1.30.0040.00417.77
8.1.20.0080.00017.71
8.1.10.0040.00417.62
8.1.00.0000.00817.65
8.0.300.0040.00419.97
8.0.290.0070.00016.88
8.0.280.0000.00718.46
8.0.270.0070.00017.20
8.0.260.0040.00418.80
8.0.250.0000.00917.01
8.0.240.0030.00617.15
8.0.230.0000.00717.07
8.0.220.0030.00617.02
8.0.210.0000.00717.06
8.0.200.0050.00317.15
8.0.190.0030.00517.08
8.0.180.0040.00416.95
8.0.170.0040.00417.01
8.0.160.0000.00717.05
8.0.150.0000.00817.05
8.0.140.0070.00016.97
8.0.130.0040.00413.54
8.0.120.0000.00716.99
8.0.110.0050.00316.91
8.0.100.0000.00817.04
8.0.90.0040.00417.06
8.0.80.0100.01016.96
8.0.70.0000.00717.05
8.0.60.0040.00416.94
8.0.50.0040.00416.87
8.0.30.0130.00517.32
8.0.20.0120.00717.40
8.0.10.0040.00416.98
8.0.00.0120.00917.05
7.4.330.0030.00315.55
7.4.320.0030.00616.75
7.4.300.0000.00616.68
7.4.290.0000.00716.67
7.4.280.0020.00516.77
7.4.270.0020.00516.65
7.4.260.0070.00016.66
7.4.250.0000.00816.76
7.4.240.0030.00316.70
7.4.230.0040.00416.40
7.4.220.0040.01316.64
7.4.210.0070.00716.82
7.4.200.0030.00316.84
7.4.160.0110.00516.63
7.4.150.0150.00317.40
7.4.140.0100.01317.86
7.4.130.0120.00616.71
7.4.120.0070.01316.64
7.4.110.0120.00616.75
7.4.100.0040.01316.62
7.4.90.0060.01016.46
7.4.80.0070.01019.39
7.4.70.0060.01716.96
7.4.60.0060.00916.65
7.4.50.0030.01316.79
7.4.40.0080.00816.54
7.4.30.0090.00916.63
7.4.00.0100.00715.07
7.3.330.0030.00313.10
7.3.320.0030.00313.07
7.3.310.0040.00416.29
7.3.300.0040.00416.38
7.3.290.0050.01016.43
7.3.280.0090.00816.43
7.3.270.0060.01317.40
7.3.260.0080.01016.57
7.3.250.0140.00516.64
7.3.240.0130.01016.54
7.3.230.0060.01116.36
7.3.210.0100.00716.39
7.3.200.0130.00716.72
7.3.190.0110.01116.55
7.3.180.0030.01216.45
7.3.170.0060.00916.36
7.3.160.0090.00616.63
7.2.330.0160.00316.85
7.2.320.0180.00616.77
7.2.310.0090.00616.80
7.2.300.0000.01816.80
7.2.290.0130.00316.78
7.2.60.0030.01017.27
7.2.50.0070.00717.01
7.1.200.0040.00416.02
7.1.70.0000.01017.46
7.1.60.0200.01335.36
7.1.50.0200.01334.68
7.1.40.0270.00734.70
7.1.30.0230.00734.88
7.1.20.0100.02034.95
7.1.10.0070.01016.73
7.1.00.0130.00316.73
7.0.200.0000.01316.66
7.0.190.0030.01016.87
7.0.180.0130.00016.47
7.0.170.0000.01316.47
7.0.160.0030.01016.45
7.0.150.0030.01316.61
7.0.140.0100.00716.33
7.0.130.0030.01016.69
7.0.120.0030.01316.75
7.0.110.0000.01316.50
7.0.100.0030.01016.62
7.0.90.0070.01316.75
7.0.80.0070.01016.71
7.0.70.0070.01016.46
7.0.60.0070.01016.53
7.0.50.0000.01316.62
7.0.40.0070.01016.62
7.0.30.0400.02016.69
7.0.20.0030.01016.55
7.0.10.0030.00716.70
7.0.00.0030.01016.61

preferences:
51.13 ms | 400 KiB | 5 Q