3v4l.org

run code in 300+ PHP versions simultaneously
<?php function fox( $a) { return $a . 'fox!'; } function dog( $b) { return $b . 'dog!'; } $a = 'A'; $b = 'B'; $string = 'The quick brown {{fox($a);}} jumped over the lazy {{dog($b);}}.'; $regex = '/{{([^}]+)+}}/e'; $result = preg_match( $regex, $string); var_dump( $result);

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.0130.00316.50
8.3.50.0110.00921.88
8.3.40.0120.00318.70
8.3.30.0100.00318.98
8.3.20.0030.00520.21
8.3.10.0040.00423.51
8.3.00.0050.00519.18
8.2.180.0110.00416.63
8.2.170.0070.01122.96
8.2.160.0140.00020.44
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0040.00422.11
8.2.110.0030.00620.53
8.2.100.0060.00617.78
8.2.90.0050.00318.95
8.2.80.0050.00317.97
8.2.70.0040.00417.63
8.2.60.0070.00018.04
8.2.50.0040.00418.07
8.2.40.0000.00818.03
8.2.30.0040.00418.06
8.2.20.0040.00417.49
8.2.10.0000.00718.04
8.2.00.0040.00417.55
8.1.280.0080.00625.92
8.1.270.0050.00322.08
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0060.00322.00
8.1.230.0110.00022.24
8.1.220.0050.00317.74
8.1.210.0000.00918.77
8.1.200.0070.00317.23
8.1.190.0030.00617.30
8.1.180.0030.00618.10
8.1.170.0080.00018.49
8.1.160.0040.00421.94
8.1.150.0060.00318.44
8.1.140.0040.00417.36
8.1.130.0050.00317.69
8.1.120.0000.00817.45
8.1.110.0000.00717.34
8.1.100.0000.00817.43
8.1.90.0040.00417.29
8.1.80.0000.00817.34
8.1.70.0070.00017.30
8.1.60.0080.00017.55
8.1.50.0000.00817.32
8.1.40.0030.00617.48
8.1.30.0050.00317.55
8.1.20.0040.00417.47
8.1.10.0040.00417.35
8.1.00.0030.00617.34
8.0.300.0080.00019.15
8.0.290.0040.00416.80
8.0.280.0000.00818.24
8.0.270.0030.00317.19
8.0.260.0030.00317.25
8.0.250.0040.00416.94
8.0.240.0030.00516.96
8.0.230.0000.00816.96
8.0.220.0000.00716.81
8.0.210.0000.00816.93
8.0.200.0030.00616.81
8.0.190.0040.00416.92
8.0.180.0000.00716.90
8.0.170.0030.00616.78
8.0.160.0000.00716.86
8.0.150.0040.00416.83
8.0.140.0000.00816.73
8.0.130.0000.00513.36
8.0.120.0040.00416.87
8.0.110.0020.00516.94
8.0.100.0000.00716.94
8.0.90.0000.00816.93
8.0.80.0110.00416.84
8.0.70.0040.00416.76
8.0.60.0040.00416.76
8.0.50.0060.00316.99
8.0.30.0110.00916.91
8.0.20.0070.01417.40
8.0.10.0040.00416.92
8.0.00.0080.01016.91
7.4.330.0000.00515.08
7.4.320.0060.00016.40
7.4.300.0030.00316.47
7.4.290.0000.00616.41
7.4.280.0030.00616.45
7.4.270.0030.00316.55
7.4.260.0050.00216.33
7.4.250.0000.00716.49
7.4.240.0020.00516.42
7.4.230.0070.00016.43
7.4.220.0130.01016.50
7.4.210.0090.00616.57
7.4.200.0000.00716.55
7.4.190.0040.00416.30
7.4.160.0080.00816.29
7.4.150.0160.01017.40
7.4.140.0100.00817.86
7.4.130.0110.00516.43
7.4.120.0090.00716.58
7.4.110.0090.00916.44
7.4.100.0150.00316.27
7.4.90.0070.01016.55
7.4.80.0090.01619.39
7.4.70.0120.00316.43
7.4.60.0160.00016.21
7.4.50.0000.00716.52
7.4.40.0100.00322.77
7.4.30.0000.01516.42
7.4.00.0060.00914.55
7.3.330.0000.00513.14
7.3.320.0000.00513.04
7.3.310.0040.00416.13
7.3.300.0000.00716.11
7.3.290.0330.00616.30
7.3.280.0080.01116.18
7.3.270.0130.00517.40
7.3.260.0090.00916.19
7.3.250.0100.00716.25
7.3.240.0130.01016.34
7.3.230.0040.01616.53
7.3.210.0100.01016.28
7.3.200.0090.00919.39
7.3.190.0040.01416.36
7.3.180.0080.00816.31
7.3.170.0100.00716.27
7.3.160.0140.00716.21
7.3.120.0030.01514.76
7.2.330.0000.01716.76
7.2.320.0150.00316.70
7.2.310.0070.01016.66
7.2.300.0080.00916.66
7.2.290.0110.00716.59
7.2.00.0040.01119.33
7.1.100.0030.00918.24
7.1.70.0000.00917.17
7.1.60.0070.01719.33
7.1.50.0170.00716.69
7.1.00.0000.08022.38
7.0.200.0090.00316.71
7.0.140.0070.07022.18
7.0.60.0130.08320.04
7.0.50.0100.05017.90
7.0.40.0100.04720.23
7.0.30.0200.05720.14
7.0.20.0400.06020.07
7.0.10.0200.06020.11
7.0.00.0070.03720.09
5.6.280.0070.07020.91
5.6.210.0070.08020.45
5.6.200.0170.07318.13
5.6.190.0070.07020.66
5.6.180.3470.04020.63
5.6.170.0270.04320.50
5.6.160.0200.07020.48
5.6.150.0070.03718.33
5.6.140.0070.04018.23
5.6.130.0100.07718.21
5.6.120.0070.04721.04
5.6.110.0070.08021.00
5.6.100.0000.09021.12
5.6.90.0130.08021.00
5.6.80.0100.08020.38
5.5.350.0270.05020.39
5.5.340.0070.05718.09
5.5.330.0030.08320.43
5.5.320.0230.03320.21
5.5.310.0200.04720.30
5.5.300.0070.04718.03
5.5.290.0100.07718.04
5.5.280.0070.04020.89
5.5.270.0030.04320.87
5.5.260.0030.08320.77
5.5.250.0000.04720.70
5.5.240.0070.07020.24
5.4.450.0230.08019.41
5.4.440.0230.03319.64
5.4.430.0170.04719.19
5.4.420.0200.07019.64
5.4.410.0130.08319.28
5.4.400.0200.06019.14
5.4.390.0270.07319.13
5.4.380.0430.02319.25
5.4.370.0200.05018.98
5.4.360.0330.07019.24
5.4.350.0130.06718.98
5.4.340.0130.04319.16
5.4.320.0170.05719.22
5.4.310.0200.07718.87
5.4.300.0270.07319.16
5.4.290.0170.05319.05
5.4.280.0200.04719.08
5.4.270.0200.03719.24
5.4.260.0170.04719.22
5.4.250.0330.06019.30
5.4.240.0230.04719.08
5.4.230.0300.06719.05
5.4.220.0100.07019.08
5.4.210.0130.08018.84
5.4.200.0230.06719.21
5.4.190.0170.04018.98
5.4.180.0300.05318.94
5.4.170.0200.08019.12
5.4.160.0300.04319.06
5.4.150.0270.06319.29
5.4.140.0200.07316.41
5.4.130.0300.02716.73
5.4.120.0070.05716.40
5.4.110.0270.04716.50
5.4.100.0230.07316.52
5.4.90.0170.05716.63
5.4.80.0300.06016.50
5.4.70.0230.06316.49
5.4.60.0170.05316.54
5.4.50.0230.04316.43
5.4.40.0130.07316.23
5.4.30.0200.05316.42
5.4.20.0230.05016.38
5.4.10.0230.06016.22
5.4.00.0230.06315.78
5.3.290.0230.05014.88
5.3.280.0300.05314.59
5.3.270.0200.04014.50
5.3.260.0200.07014.51
5.3.250.0170.04714.50
5.3.240.0170.08014.68
5.3.230.0170.07314.52
5.3.220.0170.06314.57
5.3.210.0270.05714.59
5.3.200.0270.07314.62
5.3.190.0200.07314.69
5.3.180.0200.04314.65
5.3.170.0230.06314.65
5.3.160.0300.03714.48
5.3.150.0170.03714.45
5.3.140.0200.07014.63
5.3.130.0230.04714.54
5.3.120.0230.07014.47
5.3.110.0200.07714.77
5.3.100.0230.05314.12
5.3.90.0230.06314.04
5.3.80.0230.07013.93
5.3.70.0230.05014.24
5.3.60.0200.04713.93
5.3.50.0170.04313.86
5.3.40.0230.04713.97
5.3.30.0170.07013.81
5.3.20.0230.06013.74
5.3.10.0230.06713.58
5.3.00.0100.07713.55
5.2.170.0230.03312.14
5.2.160.0270.05312.14
5.2.150.0170.04312.14
5.2.140.0130.06712.14
5.2.130.0270.05012.14
5.2.120.0200.05712.14
5.2.110.0200.05712.14
5.2.100.0170.03012.14
5.2.90.0170.02312.14
5.2.80.0030.03712.14
5.2.70.0130.03712.14
5.2.60.0230.02712.14
5.2.50.0170.02712.14
5.2.40.0070.02712.14
5.2.30.0070.03312.14
5.2.20.0070.03012.14
5.2.10.0070.02712.14
5.2.00.0100.03012.14
5.1.60.0070.02712.14
5.1.50.0130.02312.14
5.1.40.0130.01712.14
5.1.30.0100.03012.14
5.1.20.0030.03712.14
5.1.10.0030.03012.14
5.1.00.0100.02312.14
5.0.50.0070.02312.14
5.0.40.0000.02012.14
5.0.30.0000.03312.14
5.0.20.0100.01712.14
5.0.10.0030.02012.14
5.0.00.0000.03312.14
4.4.90.0000.02012.14
4.4.80.0070.02312.14
4.4.70.0030.01712.14
4.4.60.0070.01712.14
4.4.50.0070.01312.14
4.4.40.0030.02712.14
4.4.30.0100.01012.14
4.4.20.0030.01312.14
4.4.10.0030.01712.14
4.4.00.0030.02312.14
4.3.110.0070.01312.14
4.3.100.0070.01312.14
4.3.90.0030.01712.14
4.3.80.0070.02012.14
4.3.70.0030.01712.14
4.3.60.0070.01312.14
4.3.50.0130.01012.14
4.3.40.0070.02312.14
4.3.30.0030.02312.14
4.3.20.0070.03012.14
4.3.10.0000.02712.14
4.3.00.0030.01312.14

preferences:
43.44 ms | 401 KiB | 5 Q