3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tests = [ '/[$-\w]/', '/[\w-$]/', '/[\w-]/', '/[-\w]/', '/[$-]/', '/[-$]/', ]; foreach($tests as $test) { echo "$test\n"; preg_match($test,''); }

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.0030.01317.00
8.3.50.0120.00318.54
8.3.40.0090.01219.04
8.3.30.0110.00419.01
8.3.20.0070.00021.76
8.3.10.0000.00721.73
8.3.00.0050.00321.95
8.2.180.0090.01318.50
8.2.170.0070.00722.96
8.2.160.0040.01122.20
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0050.00321.24
8.2.120.0000.00826.35
8.2.110.0100.00019.35
8.2.100.0090.00318.13
8.2.90.0040.00418.09
8.2.80.0000.00918.05
8.2.70.0030.00618.03
8.2.60.0000.00817.93
8.2.50.0050.00218.16
8.2.40.0000.00720.43
8.2.30.0000.00719.62
8.2.20.0000.00718.13
8.2.10.0040.00418.12
8.2.00.0030.00518.13
8.1.280.0070.00725.92
8.1.270.0050.00520.65
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00719.59
8.1.230.0110.00020.97
8.1.220.0040.00417.79
8.1.210.0000.00919.03
8.1.200.0030.00917.36
8.1.190.0000.00817.48
8.1.180.0000.00918.10
8.1.170.0070.00018.98
8.1.160.0000.00718.93
8.1.150.0040.00419.18
8.1.140.0040.00417.79
8.1.130.0000.00720.34
8.1.120.0040.00417.61
8.1.110.0040.00417.50
8.1.100.0040.00417.54
8.1.90.0040.00417.58
8.1.80.0040.00417.49
8.1.70.0030.00617.60
8.1.60.0060.00317.77
8.1.50.0000.00817.49
8.1.40.0030.00517.56
8.1.30.0040.00417.63
8.1.20.0050.00517.75
8.1.10.0030.00617.54
8.1.00.0030.00517.55
8.0.300.0000.00719.77
8.0.290.0000.00716.88
8.0.280.0000.00718.49
8.0.270.0000.00817.07
8.0.260.0040.00417.32
8.0.250.0080.00017.12
8.0.240.0000.00817.11
8.0.230.0050.00217.16
8.0.220.0030.00317.05
8.0.210.0040.00416.99
8.0.200.0070.00017.06
8.0.190.0040.00417.13
8.0.180.0040.00416.97
8.0.170.0030.00617.15
8.0.160.0050.00217.09
8.0.150.0050.00316.96
8.0.140.0000.00817.11
8.0.130.0060.00013.47
8.0.120.0030.00517.12
8.0.110.0000.00717.05
8.0.100.0070.00017.04
8.0.90.0040.00416.98
8.0.80.0110.00417.20
8.0.70.0000.00717.03
8.0.60.0000.00717.22
8.0.50.0030.00517.17
8.0.30.0110.00817.22
8.0.20.0110.01017.40
8.0.10.0000.00717.16
8.0.00.0100.00716.87
7.4.330.0050.00015.55
7.4.320.0000.00716.89
7.4.300.0000.00616.74
7.4.290.0000.00716.75
7.4.280.0040.00416.85
7.4.270.0050.00316.83
7.4.260.0000.00816.89
7.4.250.0040.00416.87
7.4.240.0030.00316.77
7.4.230.0070.00016.84
7.4.220.0030.00516.75
7.4.210.0100.00716.88
7.4.200.0000.00716.66
7.4.160.0070.01016.71
7.4.140.0130.00717.86
7.4.130.0040.01316.73
7.4.120.0100.00816.79
7.4.110.0130.00316.71
7.4.100.0070.01016.85
7.4.90.0100.01016.64
7.4.80.0090.01519.39
7.4.70.0070.01016.82
7.4.60.0070.01016.79
7.4.50.0100.00716.55
7.4.40.0180.00616.68
7.4.00.0000.01515.12
7.3.330.0060.00013.29
7.3.320.0000.00613.21
7.3.310.0040.00416.40
7.3.300.0030.00316.33
7.3.290.0070.00016.39
7.3.280.0090.00816.47
7.3.260.0080.00916.48
7.3.240.0070.01116.69
7.3.230.0090.00916.83
7.3.210.0100.00716.49
7.3.200.0100.00616.70
7.3.190.0130.00916.64
7.3.180.0030.01316.73
7.3.170.0130.00616.57
7.3.160.0110.00716.70
7.2.330.0120.01216.92
7.2.320.0030.01516.67
7.2.310.0120.01216.77
7.2.300.0140.00316.90
7.2.290.0090.01216.61
7.2.60.0040.01116.84
7.2.40.0780.01318.15
7.2.30.0850.01018.29
7.2.20.0770.01618.15
7.2.10.0720.01318.23
7.2.00.0760.01118.43
7.1.200.0090.00616.02
7.1.160.0780.01417.11
7.1.150.0790.01117.36
7.1.140.0760.01117.17
7.1.130.1150.01117.11
7.1.120.0770.00917.06
7.1.110.0790.01016.31
7.1.100.0720.01316.38
7.1.90.0840.01116.67
7.1.80.0830.01016.29
7.1.70.0790.01315.57
7.1.60.0660.01033.51
7.1.50.1290.01433.17
7.1.40.0280.01333.10
7.1.30.1730.01232.96
7.1.20.1870.01133.04
7.1.10.1540.01215.17
7.1.00.0810.00915.01

preferences:
65.09 ms | 400 KiB | 5 Q