3v4l.org

run code in 300+ PHP versions simultaneously
<?php function get_numerics ($str) { preg_match('/^mom_(\d+)/', $str, $matches); return $matches[1]; } $one = 'mom_5'; $two = 'mom_123'; $three = 'actions'; print_r(get_numerics($one)); print_r(get_numerics($two)); print_r(get_numerics($three));

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.0070.01116.72
8.3.50.0110.00416.63
8.3.40.0090.00618.93
8.3.30.0120.00918.91
8.3.20.0050.00220.07
8.3.10.0000.00721.97
8.3.00.0090.00019.78
8.2.180.0120.00318.69
8.2.170.0110.00422.96
8.2.160.0130.00320.13
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0030.00519.17
8.2.120.0060.00326.16
8.2.110.0070.01021.18
8.2.100.0090.00318.09
8.2.90.0080.00019.08
8.2.80.0080.00018.04
8.2.70.0050.00517.88
8.2.60.0040.00418.03
8.2.50.0030.00618.10
8.2.40.0060.00320.45
8.2.30.0040.00420.93
8.2.20.0000.00718.00
8.2.10.0050.00317.95
8.2.00.0000.00717.91
8.1.280.0140.00425.92
8.1.270.0000.00822.05
8.1.260.0080.00026.35
8.1.250.0060.00328.09
8.1.240.0000.00923.92
8.1.230.0040.00719.04
8.1.220.0080.00017.74
8.1.210.0080.00018.77
8.1.200.0040.00417.25
8.1.190.0000.00817.35
8.1.180.0000.00818.10
8.1.170.0050.00320.48
8.1.160.0000.00819.11
8.1.150.0040.00420.60
8.1.140.0040.00419.47
8.1.130.0000.00718.86
8.1.120.0000.00717.61
8.1.110.0000.00817.60
8.1.100.0060.00317.51
8.1.90.0030.00717.45
8.1.80.0000.00717.57
8.1.70.0030.00317.41
8.1.60.0040.00417.66
8.1.50.0040.00417.73
8.1.40.0080.00017.71
8.1.30.0030.00517.74
8.1.20.0080.00017.67
8.1.10.0040.00417.71
8.1.00.0060.00317.59
8.0.300.0040.00418.77
8.0.290.0050.00316.75
8.0.280.0000.00718.38
8.0.270.0000.00717.10
8.0.260.0030.00316.97
8.0.250.0030.00317.00
8.0.240.0040.00317.01
8.0.230.0070.00017.00
8.0.220.0030.00317.09
8.0.210.0030.00317.07
8.0.200.0000.00617.12
8.0.190.0000.00817.02
8.0.180.0030.00517.05
8.0.170.0000.00717.00
8.0.160.0040.00416.93
8.0.150.0000.00716.96
8.0.140.0000.00716.89
8.0.130.0000.00513.49
8.0.120.0000.00716.91
8.0.110.0030.00316.95
8.0.100.0040.00416.91
8.0.90.0000.00816.96
8.0.80.0090.00617.05
8.0.70.0040.00416.99
8.0.60.0070.00016.88
8.0.50.0000.00817.04
8.0.30.0140.00417.15
8.0.20.0090.01217.40
8.0.10.0000.00916.97
8.0.00.0080.00916.95
7.4.330.0020.00215.55
7.4.320.0040.00416.67
7.4.300.0030.00516.84
7.4.290.0030.00716.69
7.4.280.0040.00416.80
7.4.270.0030.00516.80
7.4.260.0000.00513.52
7.4.250.0000.01016.79
7.4.240.0040.00416.83
7.4.230.0000.00716.86
7.4.220.0120.00616.54
7.4.210.0070.00916.69
7.4.200.0090.00016.66
7.4.160.0090.00616.53
7.4.150.0120.00617.40
7.4.140.0080.01017.86
7.4.130.0150.00616.84
7.4.120.0110.00916.68
7.4.110.0060.01616.66
7.4.100.0100.00716.67
7.4.90.0090.00916.76
7.4.80.0130.01019.39
7.4.70.0080.00816.67
7.4.60.0140.00416.66
7.4.50.0060.01016.48
7.4.40.0080.00916.56
7.4.30.0100.00616.81
7.4.00.0120.00314.89
7.3.330.0050.00013.45
7.3.320.0030.00313.50
7.3.310.0060.00316.52
7.3.300.0030.00316.39
7.3.290.0030.00316.51
7.3.280.0090.00816.44
7.3.270.0140.01117.40
7.3.260.0050.01216.64
7.3.250.0040.01016.44
7.3.240.0130.00316.46
7.3.230.0090.00916.53
7.3.210.0070.01016.66
7.3.200.0100.01016.47
7.3.190.0130.00916.47
7.3.180.0120.00616.63
7.3.170.0120.00316.49
7.3.160.0120.00616.61
7.2.330.0070.01316.66
7.2.320.0110.00516.76
7.2.310.0120.00916.68
7.2.300.0060.01216.72
7.2.290.0090.00616.73
7.2.60.0040.00717.04
7.1.200.0090.00316.09
7.1.70.0040.00817.05
7.1.60.0200.00735.53
7.1.50.0200.00735.07
7.1.40.0260.00334.75
7.1.30.0130.01934.82
7.1.20.0160.01234.76
7.1.10.0120.00316.97
7.1.00.0030.01616.83
7.0.200.0040.00816.72
7.0.190.0000.01216.85
7.0.180.0040.01116.58
7.0.170.0000.01316.22
7.0.160.0080.00616.52
7.0.150.0060.00916.44
7.0.140.0090.00316.40
7.0.130.0090.00616.80
7.0.120.0000.01416.57
7.0.110.0030.01016.70
7.0.100.0070.00716.38
7.0.90.0070.00716.59
7.0.80.0100.00316.59
7.0.70.0040.00916.37
7.0.60.0060.00916.09
7.0.50.0100.00316.41
7.0.40.0080.00616.56
7.0.30.0000.01316.54
7.0.20.0040.00816.60
7.0.10.0030.01016.72
7.0.00.0090.00516.59

preferences:
31.83 ms | 400 KiB | 5 Q