3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = "dark gray squirrel"; $r = "!s.+!"; $r2 = "{s.+}"; $r3 = "~s.+~"; preg_match($r,$test,$matches); var_dump($matches); preg_match($r2,$test,$matches); var_dump($matches); preg_match($r3,$test,$matches); var_dump($matches);

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.130.0070.00716.79
8.3.120.0060.00320.83
8.3.110.0060.00320.94
8.3.100.0030.00618.30
8.3.90.0040.00426.77
8.3.80.0090.00019.36
8.3.70.0120.00618.43
8.3.60.0100.01016.73
8.3.50.0090.00918.46
8.3.40.0150.00318.77
8.3.30.0150.00018.80
8.3.20.0000.00820.08
8.3.10.0030.00623.66
8.3.00.0000.00823.69
8.2.250.0090.00616.79
8.2.240.0060.01017.05
8.2.230.0050.00522.58
8.2.220.0030.00624.06
8.2.210.0000.00826.77
8.2.200.0100.00018.88
8.2.190.0150.00316.63
8.2.180.0120.00918.41
8.2.170.0140.00722.96
8.2.160.0120.00320.50
8.2.150.0080.00024.18
8.2.140.0030.00624.66
8.2.130.0050.00222.28
8.2.120.0000.00726.35
8.2.110.0030.00619.37
8.2.100.0030.00917.78
8.2.90.0070.00019.09
8.2.80.0080.00018.09
8.2.70.0040.00417.63
8.2.60.0030.00517.93
8.2.50.0000.00818.10
8.2.40.0000.00820.56
8.2.30.0040.00419.26
8.2.20.0000.01018.02
8.2.10.0040.00418.01
8.2.00.0070.00017.88
8.1.300.0000.00817.87
8.1.290.0040.00730.84
8.1.280.0150.00025.92
8.1.270.0030.00522.19
8.1.260.0070.00026.35
8.1.250.0090.00028.09
8.1.240.0030.00621.21
8.1.230.0080.00317.70
8.1.220.0060.00317.74
8.1.210.0030.00618.77
8.1.200.0030.00617.35
8.1.190.0000.00917.35
8.1.180.0000.00818.10
8.1.170.0040.00418.65
8.1.160.0000.00718.91
8.1.150.0040.00420.13
8.1.140.0030.00519.43
8.1.130.0000.00718.84
8.1.120.0000.00717.49
8.1.110.0040.00417.42
8.1.100.0000.00817.41
8.1.90.0030.00517.45
8.1.80.0030.00617.58
8.1.70.0030.00317.55
8.1.60.0040.00417.62
8.1.50.0040.00417.52
8.1.40.0000.00817.63
8.1.30.0040.00417.72
8.1.20.0000.00817.61
8.1.10.0000.00917.71
8.1.00.0040.00417.59
8.0.300.0040.00418.77
8.0.290.0080.00016.75
8.0.280.0030.00318.33
8.0.270.0000.00717.21
8.0.260.0000.00816.88
8.0.250.0060.00317.02
8.0.240.0030.00316.90
8.0.230.0070.00016.96
8.0.220.0040.00416.97
8.0.210.0030.00316.83
8.0.200.0040.00416.98
8.0.190.0050.00316.93
8.0.180.0000.00816.96
8.0.170.0040.00716.97
8.0.160.0000.00717.00
8.0.150.0070.00016.86
8.0.140.0050.00316.79
8.0.130.0030.00313.35
8.0.120.0000.00816.86
8.0.110.0040.00416.99
8.0.100.0040.00416.84
8.0.90.0040.00417.00
8.0.80.0070.01116.91
8.0.70.0040.00417.02
8.0.60.0040.00416.79
8.0.50.0000.00816.85
8.0.30.0120.00917.21
8.0.20.0120.00817.40
8.0.10.0040.00417.02
8.0.00.0030.01816.98
7.4.330.0030.00316.81
7.4.320.0000.00616.64
7.4.300.0000.00616.68
7.4.290.0040.00416.69
7.4.280.0030.00716.58
7.4.270.0030.00316.64
7.4.260.0000.00716.66
7.4.250.0030.00316.70
7.4.240.0050.00316.72
7.4.230.0000.00716.61
7.4.220.0080.01216.80
7.4.210.0090.00716.69
7.4.200.0070.00016.61
7.4.160.0060.01216.71
7.4.150.0100.00717.40
7.4.140.0080.01217.86
7.4.130.0070.01216.32
7.4.120.0120.01116.58
7.4.110.0100.00716.77
7.4.100.0100.01316.58
7.4.90.0120.00616.60
7.4.80.0120.01219.39
7.4.70.0070.01216.68
7.4.60.0070.01016.44
7.4.50.0110.00616.44
7.4.40.0070.01016.57
7.4.30.0120.00316.78
7.4.00.0160.00014.95
7.3.330.0030.00313.11
7.3.320.0030.00413.01
7.3.310.0000.00716.32
7.3.300.0000.00716.36
7.3.290.0030.00316.23
7.3.280.0100.00816.29
7.3.270.0070.01117.40
7.3.260.0110.01316.47
7.3.250.0090.01016.48
7.3.240.0130.00716.40
7.3.230.0120.00416.35
7.3.210.0200.00316.34
7.3.200.0130.00816.25
7.3.190.0120.00416.31
7.3.180.0160.00016.55
7.3.170.0090.01216.25
7.3.160.0100.00616.27
7.2.330.0110.00816.60
7.2.320.0100.00616.60
7.2.310.0090.00916.59
7.2.300.0140.00616.52
7.2.290.0080.01216.54
7.2.60.0030.00916.82
7.1.200.0150.00715.65
7.1.110.4780.01315.70
7.1.100.3360.00715.97
7.1.90.3240.01416.23
7.1.80.4470.01016.46
7.1.70.2990.00715.34
7.1.60.4100.00733.46
7.1.50.4130.01732.94
7.1.40.4340.00732.75
7.1.30.4480.00732.74
7.1.20.4310.02932.68
7.1.10.3660.00314.91
7.1.00.3990.01014.95
7.0.250.5110.01616.00
7.0.240.3560.00315.79
7.0.230.3830.00316.23
7.0.220.5730.00315.71
7.0.210.4240.01314.95
7.0.200.5520.00715.10
7.0.190.5950.01315.01
7.0.180.4570.01714.44
7.0.170.5880.01014.58
7.0.160.6150.00314.68
7.0.150.3810.01314.48
7.0.140.4090.01014.80
7.0.130.4000.01014.87
7.0.120.2900.00314.82
7.0.110.4640.01614.71
7.0.100.4300.01014.49
7.0.90.2840.01314.86
7.0.80.4600.01014.55
7.0.70.4990.00714.67
7.0.60.4720.00714.57
7.0.50.4590.01314.73
7.0.40.4910.01014.86
7.0.30.5220.01314.75
7.0.20.5310.00714.67
7.0.10.5520.00714.68
7.0.00.5410.01014.76

preferences:
69.73 ms | 403 KiB | 5 Q