3v4l.org

run code in 300+ PHP versions simultaneously
<?php $strings = [ '$hey()', '$hey->hi()', '$hey(\'hi\')', '$hey moretext()' ]; foreach ($strings as $string) { if (preg_match('~^\$\w+\([^)]*\)$~', $string)) { echo $string . "\n"; } }

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.0120.00918.55
8.3.50.0070.01416.59
8.3.40.0110.00718.79
8.3.30.0110.00418.92
8.3.20.0040.00424.18
8.3.10.0000.00824.66
8.3.00.0000.00726.16
8.2.180.0140.00725.92
8.2.170.0090.00919.08
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0040.00426.35
8.2.110.0060.00322.08
8.2.100.0030.00919.64
8.2.90.0040.00417.75
8.2.80.0090.00018.86
8.2.70.0000.00917.80
8.2.60.0040.00417.63
8.2.50.0000.00817.75
8.2.40.0080.00018.01
8.2.30.0030.00518.00
8.2.20.0070.00018.01
8.2.10.0030.00619.31
8.2.00.0040.00419.13
8.1.280.0110.00325.92
8.1.270.0070.00023.99
8.1.260.0070.00028.09
8.1.250.0000.00728.09
8.1.240.0090.00023.97
8.1.230.0070.00319.09
8.1.220.0030.00617.74
8.1.210.0040.00418.77
8.1.200.0060.00317.47
8.1.190.0050.00317.35
8.1.180.0040.00418.10
8.1.170.0060.00618.59
8.1.160.0040.00418.97
8.1.150.0070.00318.90
8.1.140.0030.00518.90
8.1.130.0050.00320.21
8.1.120.0030.00317.64
8.1.110.0040.00417.63
8.1.100.0040.00417.56
8.1.90.0000.00717.56
8.1.80.0030.00617.55
8.1.70.0000.00917.54
8.1.60.0030.00517.66
8.1.50.0030.00617.60
8.1.40.0030.00917.71
8.1.30.0000.01017.75
8.1.20.0000.00717.74
8.1.10.0040.00417.61
8.1.00.0000.00717.59
8.0.300.0090.00018.77
8.0.290.0000.00916.88
8.0.280.0000.00718.36
8.0.270.0030.00518.06
8.0.260.0030.00318.33
8.0.250.0040.00417.05
8.0.240.0030.00317.06
8.0.230.0070.00017.13
8.0.220.0000.00716.96
8.0.210.0040.00417.06
8.0.200.0030.00317.04
8.0.190.0000.00916.97
8.0.180.0000.00716.92
8.0.170.0090.00016.97
8.0.160.0050.00217.07
8.0.150.0070.00016.95
8.0.140.0040.00416.94
8.0.130.0030.00313.45
8.0.120.0080.00017.01
8.0.110.0080.00017.09
8.0.100.0000.00716.81
8.0.90.0040.00416.85
8.0.80.0050.01016.99
8.0.70.0000.00817.09
8.0.60.0050.00216.93
8.0.50.0040.00416.92
8.0.30.0140.00716.98
8.0.20.0100.01017.13
8.0.10.0030.01417.07
8.0.00.0120.00917.13
7.4.330.0060.00015.55
7.4.320.0000.00616.72
7.4.300.0030.00316.84
7.4.290.0040.00416.79
7.4.280.0030.00516.68
7.4.270.0070.00016.80
7.4.260.0030.00313.46
7.4.250.0050.00316.68
7.4.240.0040.00416.75
7.4.230.0070.00016.74
7.4.220.0030.00416.80
7.4.210.0080.00816.84
7.4.200.0040.00416.71
7.4.160.0170.00416.82
7.4.150.0060.01516.88
7.4.140.0060.01216.76
7.4.130.0070.01416.74
7.4.120.0150.00016.67
7.4.110.0150.00616.74
7.4.100.0120.00316.70
7.4.90.0110.00816.75
7.4.80.0030.01816.76
7.4.70.0070.00716.68
7.4.60.0060.00916.72
7.4.50.0150.00016.77
7.4.40.0090.00616.61
7.4.30.0120.00916.73
7.4.20.0070.00716.63
7.4.10.0090.00916.73
7.4.00.0060.00916.68
7.3.330.0060.00016.29
7.3.320.0060.00013.29
7.3.310.0040.00416.47
7.3.300.0060.00016.21
7.3.290.0080.01016.40
7.3.270.0140.00616.34
7.3.260.0090.00916.43
7.3.250.0040.01116.38
7.3.240.0060.00916.43
7.3.230.0090.00616.32
7.3.220.0170.00316.39
7.3.210.0120.00316.32
7.3.200.0100.01016.30
7.3.190.0070.00716.33
7.3.180.0100.01016.29
7.3.170.0030.01116.36
7.3.160.0060.00916.43
7.3.150.0140.00016.33
7.3.140.0110.01116.37
7.3.130.0120.00316.25
7.3.120.0100.01016.35
7.3.110.0100.01016.31
7.3.100.0090.00916.30
7.3.90.0110.00316.68
7.3.80.0070.00716.35
7.3.70.0030.01016.46
7.3.60.0100.00316.52
7.3.50.0040.01116.47
7.3.40.0070.00716.55
7.3.30.0070.00716.54
7.3.20.0060.00916.52
7.3.10.0110.00316.45
7.3.00.0050.00916.42

preferences:
63.84 ms | 400 KiB | 5 Q