3v4l.org

run code in 300+ PHP versions simultaneously
<?php $matches=array(); $s="uno dos tres ugo"; preg_match_all("/^u/", $s, $matches); print_r($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.60.0030.01418.55
8.3.50.0080.01021.24
8.3.40.0190.00318.69
8.3.30.0070.00718.84
8.3.20.0080.00020.30
8.3.10.0000.00721.91
8.3.00.0060.00323.52
8.2.180.0090.00616.63
8.2.170.0090.00622.96
8.2.160.0080.00620.52
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0050.00319.64
8.2.120.0000.00726.35
8.2.110.0110.00621.07
8.2.100.0030.01018.04
8.2.90.0040.00419.17
8.2.80.0000.00817.97
8.2.70.0040.00417.63
8.2.60.0050.00317.91
8.2.50.0000.00918.07
8.2.40.0080.00320.46
8.2.30.0050.00319.39
8.2.20.0000.00717.81
8.2.10.0070.00017.92
8.2.00.0000.00817.91
8.1.280.0220.00025.92
8.1.270.0030.00623.91
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0120.00020.56
8.1.230.0090.00318.96
8.1.220.0080.00017.74
8.1.210.0050.00318.77
8.1.200.0030.00617.34
8.1.190.0060.00317.36
8.1.180.0000.00818.10
8.1.170.0050.00318.50
8.1.160.0000.00720.63
8.1.150.0040.00718.90
8.1.140.0030.00519.57
8.1.130.0000.00717.72
8.1.120.0030.00617.55
8.1.110.0040.00417.55
8.1.100.0040.00417.61
8.1.90.0040.00417.55
8.1.80.0040.00517.43
8.1.70.0040.00417.57
8.1.60.0000.00817.61
8.1.50.0000.00817.67
8.1.40.0000.00917.45
8.1.30.0030.00617.70
8.1.20.0000.00717.68
8.1.10.0030.00617.51
8.1.00.0030.00517.55
8.0.300.0000.00718.77
8.0.290.0080.00016.88
8.0.280.0000.00718.39
8.0.270.0000.00817.20
8.0.260.0050.00317.11
8.0.250.0080.00017.02
8.0.240.0080.00016.96
8.0.230.0040.00417.04
8.0.220.0060.00316.95
8.0.210.0000.00716.84
8.0.200.0030.00517.11
8.0.190.0000.00817.02
8.0.180.0000.00716.99
8.0.170.0000.00817.02
8.0.160.0040.00416.94
8.0.150.0040.00416.85
8.0.140.0060.00316.74
8.0.130.0000.00613.39
8.0.120.0060.00316.83
8.0.110.0000.00716.98
8.0.100.0030.00616.98
8.0.90.0000.00716.92
8.0.80.0150.00016.97
8.0.70.0070.00017.02
8.0.60.0070.00016.82
8.0.50.0040.00416.80
8.0.30.0030.01517.05
8.0.20.0090.00917.40
8.0.10.0050.00216.89
8.0.00.0110.00916.93
7.4.330.0050.00016.79
7.4.320.0000.00616.70
7.4.300.0000.00716.62
7.4.290.0090.00016.57
7.4.280.0060.00316.72
7.4.270.0000.00616.71
7.4.260.0000.00716.64
7.4.250.0030.00516.63
7.4.240.0000.00716.66
7.4.230.0070.00016.57
7.4.220.0030.01616.80
7.4.210.0070.01116.81
7.4.200.0030.00416.85
7.4.160.0120.00316.63
7.4.150.0140.00317.40
7.4.140.0100.01117.86
7.4.130.0080.01016.63
7.4.120.0140.00316.68
7.4.110.0070.01016.38
7.4.100.0070.01416.34
7.4.90.0120.01216.73
7.4.80.0030.01319.39
7.4.70.0110.01116.41
7.4.60.0070.00816.61
7.4.50.0120.00616.66
7.4.40.0080.01016.56
7.4.30.0030.01316.82
7.4.00.0050.01014.98
7.3.330.0000.00513.03
7.3.320.0000.00513.18
7.3.310.0000.00716.21
7.3.300.0000.00716.27
7.3.290.0080.00816.25
7.3.280.0080.00816.28
7.3.270.0150.00417.40
7.3.260.0170.00016.77
7.3.250.0070.01016.25
7.3.240.0090.01116.54
7.3.230.0070.01016.39
7.3.210.0110.01116.51
7.3.200.0110.00919.39
7.3.190.0030.01316.86
7.3.180.0100.00716.31
7.3.170.0040.01216.27
7.3.160.0110.00716.34
7.3.120.0100.01015.08
7.3.110.0070.01014.65
7.3.100.0030.01014.65
7.3.90.0000.01714.59
7.3.80.0000.01215.10
7.3.70.0070.01114.60
7.3.60.0070.00714.55
7.3.50.0060.00914.87
7.3.40.0040.01514.57
7.3.30.0110.00714.74
7.3.20.0070.00716.37
7.3.10.0120.00316.73
7.3.00.0100.00316.83
7.2.330.0050.01516.54
7.2.320.0090.00916.45
7.2.310.0070.01016.57
7.2.300.0070.01116.78
7.2.290.0060.01016.77
7.2.250.0120.00614.77
7.2.240.0030.01214.96
7.2.230.0040.01215.20
7.2.220.0070.00715.18
7.2.210.0140.00314.73
7.2.200.0040.01815.07
7.2.190.0090.00615.16
7.2.180.0130.00314.96
7.2.170.0060.01014.84
7.2.00.0060.00619.31
7.1.330.0040.01115.89
7.1.320.0000.01315.94
7.1.310.0070.01015.55
7.1.300.0090.00615.91
7.1.290.0030.01515.84
7.1.280.0030.00915.65
7.1.270.0000.01315.74
7.1.260.0090.00615.74
7.1.100.0000.01418.47
7.1.70.0000.00817.27
7.1.60.0160.00717.43
7.1.50.0140.01416.94
7.1.00.0030.07322.32
7.0.200.0090.00616.91
7.0.60.0030.08321.71
7.0.50.0130.08317.88
7.0.40.0130.03720.22
7.0.30.0330.06020.13
7.0.20.0300.04720.22
7.0.10.0030.04320.08
7.0.00.0070.04020.21
5.6.280.0000.07321.11
5.6.210.0100.07720.50
5.6.200.0000.04718.23
5.6.190.0030.08720.50
5.6.180.0270.05020.67
5.6.170.0200.05020.39
5.6.160.0000.04320.57
5.6.150.0030.04018.12
5.6.140.0130.07318.28
5.6.130.0070.04718.15
5.6.120.0100.05720.98
5.6.110.0100.05321.13
5.6.100.0170.07320.95
5.6.90.0100.08320.93
5.6.80.0130.07320.38
5.5.350.4030.03020.40
5.5.340.0030.04718.08
5.5.330.0130.07720.31
5.5.320.0470.04720.30
5.5.310.0230.04320.36
5.5.300.0130.07318.02
5.5.290.0070.05318.08
5.5.280.0130.04720.89
5.5.270.0030.04020.95
5.5.260.0200.08020.86
5.5.250.0070.07020.68
5.5.240.0070.07720.02

preferences:
49.94 ms | 401 KiB | 5 Q