3v4l.org

run code in 300+ PHP versions simultaneously
<?php $submission['group_1']['city'] = 'asd'; $city = isset($submission['group_1']['city']) ? $submission['group_1']['city'] : ''; echo preg_match('/^asd$/', $city);

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.20.0170.00317.99
8.4.10.0060.00617.66
8.3.150.0040.00416.96
8.3.140.0090.00916.72
8.3.130.0030.00518.59
8.3.120.0160.00319.10
8.3.110.0100.01020.94
8.3.100.0080.00416.59
8.3.90.0000.00718.65
8.3.80.0050.00518.43
8.3.70.0000.01516.88
8.3.60.0070.01418.43
8.3.50.0160.00322.18
8.3.40.0150.00018.88
8.3.30.0080.00619.21
8.3.20.0080.00020.35
8.3.10.0040.00421.69
8.3.00.0050.00319.10
8.2.260.0070.00719.00
8.2.250.0090.00616.95
8.2.240.0080.00017.18
8.2.230.0090.00022.58
8.2.220.0150.00024.06
8.2.210.0070.00026.77
8.2.200.0060.00316.50
8.2.190.0100.00620.46
8.2.180.0060.01518.76
8.2.170.0110.00722.96
8.2.160.0090.00422.07
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0110.00426.16
8.2.120.0030.00717.93
8.2.110.0000.00922.14
8.2.100.0080.00417.84
8.2.90.0000.00719.39
8.2.80.0060.00317.97
8.2.70.0080.00017.75
8.2.60.0050.00317.93
8.2.50.0040.00418.07
8.2.40.0040.00418.34
8.2.30.0000.00718.07
8.2.20.0070.00017.77
8.2.10.0000.00718.04
8.2.00.0040.00417.77
8.1.310.0070.00016.96
8.1.300.0090.00018.27
8.1.290.0000.00918.88
8.1.280.0040.01125.92
8.1.270.0040.00419.00
8.1.260.0030.01026.35
8.1.250.0050.00228.09
8.1.240.0100.00023.94
8.1.230.0110.00019.22
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0120.00017.48
8.1.190.0060.00317.35
8.1.180.0000.00818.10
8.1.170.0030.00618.80
8.1.160.0000.00721.88
8.1.150.0050.00218.85
8.1.140.0040.00419.36
8.1.130.0040.00417.89
8.1.120.0000.00717.59
8.1.110.0080.00017.49
8.1.100.0070.00317.50
8.1.90.0000.00717.42
8.1.80.0040.00317.52
8.1.70.0040.00417.56
8.1.60.0000.00817.59
8.1.50.0080.00017.50
8.1.40.0030.00617.62
8.1.30.0030.00717.61
8.1.20.0050.00517.71
8.1.10.0040.00417.77
8.1.00.0000.00717.67
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0030.00318.47
8.0.270.0070.00017.27
8.0.260.0030.00317.27
8.0.250.0000.00817.12
8.0.240.0030.00317.11
8.0.230.0030.00316.92
8.0.220.0060.00016.98
8.0.210.0060.00016.98
8.0.200.0030.00617.01
8.0.190.0020.00516.99
8.0.180.0000.00717.05
8.0.170.0000.00716.89
8.0.160.0050.00217.04
8.0.150.0040.00416.91
8.0.140.0040.00416.91
8.0.130.0000.00613.39
8.0.120.0050.00316.84
8.0.110.0070.00017.04
8.0.100.0040.00416.82
8.0.90.0040.00417.03
8.0.80.0080.01116.95
8.0.70.0040.00417.08
8.0.60.0070.00016.99
8.0.50.0050.00216.87
8.0.30.0120.00916.99
8.0.20.0100.01017.40
8.0.10.0040.00417.05
8.0.00.0100.00817.03
7.4.330.0000.00615.03
7.4.320.0070.00016.66
7.4.300.0030.00316.79
7.4.290.0070.00016.79
7.4.280.0040.00416.52
7.4.270.0070.00016.75
7.4.260.0030.00316.57
7.4.250.0000.00716.76
7.4.240.0020.00516.62
7.4.230.0070.00016.72
7.4.220.0060.01216.58
7.4.210.0110.00716.60
7.4.200.0030.00316.63
7.4.160.0130.00316.62
7.4.150.0070.01017.40
7.4.140.0090.00817.86
7.4.130.0100.01216.72
7.4.120.0120.00416.58
7.4.110.0150.00416.67
7.4.100.0030.01316.54
7.4.90.0120.00416.54
7.4.80.0090.00919.39
7.4.70.0100.00616.56
7.4.60.0090.00616.60
7.4.50.0030.00316.43
7.4.40.0100.01316.61
7.4.30.0160.00616.80
7.4.00.0130.00015.27
7.3.330.0000.00613.32
7.3.320.0060.00013.14
7.3.310.0070.00016.29
7.3.300.0030.00316.30
7.3.290.0060.00816.50
7.3.280.0080.00716.47
7.3.270.0110.00917.40
7.3.260.0150.00316.76
7.3.250.0110.00916.43
7.3.240.0100.00716.32
7.3.230.0070.01016.61
7.3.210.0110.00616.38
7.3.200.0070.01019.39
7.3.190.0120.00316.77
7.3.180.0120.00916.75
7.3.170.0050.01616.81
7.3.160.0060.01016.47
7.2.330.0080.01116.60
7.2.320.0100.00716.87
7.2.310.0060.01016.76
7.2.300.0090.00816.99
7.2.290.0120.00616.85
7.2.00.0000.01319.71
7.1.100.0030.00618.48
7.1.70.0030.00317.39
7.1.60.0060.01319.46
7.1.50.0070.01417.16
7.1.00.0100.07022.30
7.0.200.0000.00717.01
7.0.140.0030.03322.04
7.0.60.0030.08320.00
7.0.50.0070.03717.84
7.0.40.0030.09020.25
7.0.30.0170.06320.02
7.0.20.0330.07720.15
7.0.10.0030.04320.14
7.0.00.0070.04020.00
5.6.280.0000.07721.11
5.6.210.0130.07320.50
5.6.200.0070.05318.19
5.6.190.0030.05320.64
5.6.180.0230.04020.45
5.6.170.0430.07720.71
5.6.160.0070.05320.52
5.6.150.0070.07318.22
5.6.140.0030.08018.21
5.6.130.0000.05318.18
5.6.120.0070.07720.89
5.6.110.0100.06320.98
5.6.100.0100.08721.13
5.6.90.0070.07321.12
5.6.80.0000.04020.28
5.5.350.0070.07720.51
5.5.340.0030.03718.02
5.5.330.0170.07720.13
5.5.320.0230.04720.27
5.5.310.0170.04320.20
5.5.300.0030.03717.97
5.5.290.0100.07017.90
5.5.280.0070.03720.88
5.5.270.0000.09020.64
5.5.260.0130.06320.86
5.5.250.0170.07720.54
5.5.240.4270.04020.04
5.4.450.0230.07019.25
5.4.440.0200.03719.57
5.4.430.0130.04019.11
5.4.420.0130.04019.57
5.4.410.0100.04019.13
5.4.400.0100.04018.92
5.4.390.0270.03319.25
5.4.380.0130.03719.25
5.4.370.0170.04019.06
5.4.360.0200.04318.95
5.4.350.0100.04019.16
5.4.340.0230.03318.88
5.4.320.0130.03719.21
5.4.310.0170.04018.93
5.4.300.0170.03319.13
5.4.290.0100.04018.80
5.4.280.0130.04019.21
5.4.270.0300.03719.08
5.4.260.0200.05319.09
5.4.250.0130.04718.78
5.4.240.0170.04318.80
5.4.230.0130.03719.21
5.4.220.0170.06318.91
5.4.210.0270.06719.07
5.4.200.0070.06019.24
5.4.190.0200.07718.94
5.4.180.0230.07719.10
5.4.170.0200.07019.08
5.4.160.0300.07018.89
5.4.150.0130.05019.11
5.4.140.0230.07016.26
5.4.130.0270.04316.20
5.4.120.0230.06716.17
5.4.110.0170.07016.43
5.4.100.0200.06016.47
5.4.90.0300.06716.30
5.4.80.0300.05316.37
5.4.70.0170.03716.04
5.4.60.0230.03316.33
5.4.50.0200.04716.39
5.4.40.0230.06716.18
5.4.30.0270.07016.16
5.4.20.0200.06716.36
5.4.10.0270.04716.32
5.4.00.0200.04315.81
5.3.290.0170.04714.54
5.3.280.0130.05314.55
5.3.270.0300.06714.55
5.3.260.0230.05314.71
5.3.250.0170.03714.69
5.3.240.0130.06314.65
5.3.230.0270.04714.44
5.3.220.0230.06714.61
5.3.210.0200.07014.40
5.3.200.0270.06714.44
5.3.190.0300.04314.50
5.3.180.0170.08014.47
5.3.170.0170.04714.46
5.3.160.0200.04014.42
5.3.150.0230.03314.41
5.3.140.0370.06014.50
5.3.130.0200.07714.49
5.3.120.0200.06714.40
5.3.110.0170.05314.40
5.3.100.0230.03713.88
5.3.90.0270.06313.86
5.3.80.0170.04313.81
5.3.70.0330.05714.11
5.3.60.0230.07013.88
5.3.50.0200.05013.79
5.3.40.0170.04313.72
5.3.30.0330.03313.86
5.3.20.0200.05313.63
5.3.10.0270.05713.50
5.3.00.0230.04713.59
5.2.170.0200.02713.22
5.2.160.0200.03713.22
5.2.150.0130.07013.22
5.2.140.0200.05713.22
5.2.130.0230.02013.22
5.2.120.0270.05313.22
5.2.110.0170.04713.22
5.2.100.0270.03013.22
5.2.90.0130.03013.22
5.2.80.0170.03713.22
5.2.70.0230.02713.22
5.2.60.0170.06013.22
5.2.50.0200.04713.22
5.2.40.0230.05013.22
5.2.30.0170.03313.22
5.2.20.0130.04313.22
5.2.10.0130.05013.22
5.2.00.0170.03313.22
5.1.60.0130.03713.22
5.1.50.0130.05313.22
5.1.40.0130.05313.22
5.1.30.0170.03313.22
5.1.20.0170.03313.22
5.1.10.0230.04713.22
5.1.00.0230.04713.22
5.0.50.0130.03713.22
5.0.40.0070.03013.22
5.0.30.0100.04313.22
5.0.20.0130.04313.22
5.0.10.0130.04013.22
5.0.00.0070.04013.22
4.4.90.0100.01713.22
4.4.80.0070.04013.22
4.4.70.0070.02713.22
4.4.60.0070.02313.22
4.4.50.0100.03313.22
4.4.40.0100.05013.22
4.4.30.0070.03313.22
4.4.20.0030.03313.22
4.4.10.0100.03313.22
4.4.00.0070.03313.22
4.3.110.0130.03313.22
4.3.100.0130.03013.22
4.3.90.0070.02313.22
4.3.80.0130.04713.22
4.3.70.0100.03013.22
4.3.60.0100.02013.22
4.3.50.0070.02713.22
4.3.40.0070.05013.22
4.3.30.0030.01713.22
4.3.20.0000.02313.22
4.3.10.0070.02713.22
4.3.00.0070.02713.22

preferences:
82.97 ms | 403 KiB | 5 Q