3v4l.org

run code in 300+ PHP versions simultaneously
<?php t_ereg("d"); t_ereg("c"); t_ereg("ct"); t_ereg("coat"); t_ereg("do"); t_ereg("dog"); t_ereg("dogcat"); t_ereg("docat"); t_ereg("doc"); t_ereg("cat"); t_ereg("c1234abct"); function t_ereg ( $line ) { $pattern='dog|c*t'; echo "$pattern=>\"$line\":"; echo (ereg ($pattern, $line))?"1":"0"; echo "\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.0060.00918.30
8.3.50.0140.00521.97
8.3.40.0120.00318.79
8.3.30.0110.00718.68
8.3.20.0030.00518.73
8.3.10.0050.00321.09
8.3.00.0040.00423.58
8.2.180.0000.02318.17
8.2.170.0070.00722.96
8.2.160.0070.01120.43
8.2.150.0080.00024.18
8.2.140.0050.00224.66
8.2.130.0040.00426.16
8.2.120.0080.00020.77
8.2.110.0030.00620.32
8.2.100.0120.00017.78
8.2.90.0000.00819.17
8.2.80.0080.00018.05
8.2.70.0030.00517.50
8.2.60.0030.00617.93
8.2.50.0080.00018.07
8.2.40.0030.00618.16
8.2.30.0040.00421.23
8.2.20.0000.01017.86
8.2.10.0080.00017.77
8.2.00.0060.00317.91
8.1.280.0160.00625.92
8.1.270.0070.00023.99
8.1.260.0080.01126.35
8.1.250.0000.00728.09
8.1.240.0000.00922.05
8.1.230.0100.00022.09
8.1.220.0040.00418.77
8.1.210.0080.00018.88
8.1.200.0030.00617.38
8.1.190.0040.00417.40
8.1.180.0060.00318.10
8.1.170.0060.00318.72
8.1.160.0020.00518.92
8.1.150.0000.00818.62
8.1.140.0030.00617.36
8.1.130.0030.00317.88
8.1.120.0070.00017.38
8.1.110.0080.00017.43
8.1.100.0050.00217.47
8.1.90.0040.00417.44
8.1.80.0040.00317.43
8.1.70.0000.00717.45
8.1.60.0060.00317.51
8.1.50.0030.00617.57
8.1.40.0000.00717.46
8.1.30.0070.00017.52
8.1.20.0030.00617.63
8.1.10.0040.00417.60
8.1.00.0000.00917.56
8.0.300.0050.00320.02
8.0.290.0040.00417.30
8.0.280.0050.00318.60
8.0.270.0000.00717.21
8.0.260.0060.00018.48
8.0.250.0000.00717.02
8.0.240.0000.00817.02
8.0.230.0070.00017.02
8.0.220.0030.00316.96
8.0.210.0040.00417.00
8.0.200.0030.00316.95
8.0.190.0050.00317.13
8.0.180.0000.00816.92
8.0.170.0030.00317.01
8.0.160.0030.00316.91
8.0.150.0000.00716.89
8.0.140.0000.00716.98
8.0.130.0030.00313.44
8.0.120.0000.00716.91
8.0.110.0070.00017.06
8.0.100.0000.00817.00
8.0.90.0040.00417.00
8.0.80.0040.01516.98
8.0.70.0070.00016.88
8.0.60.0000.00716.83
8.0.50.0000.00916.88
8.0.30.0090.01016.96
8.0.20.0100.00817.40
8.0.10.0040.00417.07
8.0.00.0090.00816.86
7.4.330.0050.00016.83
7.4.320.0030.00316.48
7.4.300.0070.00016.51
7.4.290.0040.00416.63
7.4.280.0070.00316.63
7.4.270.0000.00716.67
7.4.260.0050.00013.31
7.4.250.0030.00516.59
7.4.240.0000.00716.65
7.4.230.0030.00316.38
7.4.220.0120.00616.45
7.4.210.0050.01016.61
7.4.200.0000.00816.45
7.4.190.0000.00716.71
7.4.160.0080.00816.77
7.4.150.0130.00817.40
7.4.140.0090.00817.86
7.4.130.0070.01316.49
7.4.120.0130.00316.58
7.4.110.0160.04016.52
7.4.100.0060.01316.67
7.4.90.0110.00816.57
7.4.80.0130.00319.39
7.4.70.0040.01216.51
7.4.60.0070.01016.77
7.4.50.0030.00616.57
7.4.40.0080.00822.77
7.4.30.0070.01016.54
7.4.10.0030.01615.23
7.4.00.0110.00515.07
7.3.330.0000.00513.48
7.3.320.0000.00513.25
7.3.310.0030.00316.41
7.3.300.0000.00816.32
7.3.290.0070.01016.42
7.3.280.0070.00816.48
7.3.270.0170.00817.40
7.3.260.0120.00818.24
7.3.250.0110.00516.69
7.3.240.0070.01616.59
7.3.230.0070.01016.66
7.3.210.0090.01216.56
7.3.200.0100.00719.39
7.3.190.0090.01216.32
7.3.180.0100.00716.66
7.3.170.0110.00716.48
7.3.160.0060.01016.48
7.3.130.0130.00314.96
7.3.120.0070.00915.08
7.3.110.0070.01114.89
7.3.100.0100.00014.91
7.3.90.0120.00414.95
7.3.80.0040.00814.91
7.3.70.0070.00715.05
7.3.60.0030.01314.80
7.3.50.0070.01014.90
7.3.40.0090.00614.78
7.3.30.0100.00714.65
7.3.20.0070.00716.70
7.3.10.0110.01016.65
7.3.00.0070.01116.62
7.2.330.0070.01116.27
7.2.320.0070.01016.37
7.2.310.0070.01016.74
7.2.300.0090.00916.50
7.2.290.0060.00916.57
7.2.260.0030.01714.84
7.2.250.0070.01114.84
7.2.240.0060.01014.91
7.2.230.0080.00414.85
7.2.220.0090.00614.83
7.2.210.0000.01014.48
7.2.200.0090.00314.94
7.2.190.0070.01014.75
7.2.180.0060.01314.93
7.2.170.0120.00614.64
7.2.160.0090.00914.73
7.2.150.0060.00916.88
7.2.140.0040.01516.70
7.2.130.0090.00916.62
7.2.120.0070.01216.55
7.2.110.0060.00916.67
7.2.100.0120.00516.37
7.2.90.0120.00616.50
7.2.80.0070.00916.80
7.2.70.0120.01116.57
7.2.60.0090.00816.84
7.2.50.0140.00616.63
7.2.40.0110.00616.58
7.2.30.0040.01116.61
7.2.20.0050.01016.53
7.2.10.0090.00716.77
7.2.00.0090.00617.47
7.1.330.0040.01115.85
7.1.320.0070.00715.66
7.1.310.0060.00615.75
7.1.300.0040.00715.42
7.1.290.0120.00015.56
7.1.280.0060.00815.75
7.1.270.0040.01215.52
7.1.260.0000.01515.57
7.1.250.0070.00815.53
7.1.240.0030.00915.73
7.1.230.0060.00615.76
7.1.220.0090.00015.77
7.1.210.0030.00715.71
7.1.200.0010.01015.84
7.1.190.0030.00815.86
7.1.180.0090.00315.48
7.1.170.0040.00415.70
7.1.160.0060.00915.80
7.1.150.0030.00715.51
7.1.140.0100.00315.73
7.1.130.0060.00615.89
7.1.120.0110.00015.78
7.1.110.0070.00715.82
7.1.100.0060.00716.82
7.1.90.0060.00615.84
7.1.80.0030.00615.77
7.1.70.0020.00916.35
7.1.60.0120.00317.44
7.1.50.0060.01116.35
7.1.40.0030.00615.66
7.1.30.0000.01315.88
7.1.20.0000.01615.49
7.1.10.0000.00815.41
7.1.00.0070.04019.05
7.0.330.0040.00815.46
7.0.320.0000.01015.50
7.0.310.0040.00715.13
7.0.300.0040.00415.47
7.0.290.0050.00515.20
7.0.280.0040.00815.39
7.0.270.0030.00615.36
7.0.260.0060.00615.33
7.0.250.0000.00915.39
7.0.240.0090.00315.16
7.0.230.0000.00915.58
7.0.220.0050.00315.45
7.0.210.0090.00315.57
7.0.200.0160.00415.89
7.0.190.0030.01115.43
7.0.180.0060.00815.50
7.0.170.0030.00915.43
7.0.160.0090.00615.38
7.0.150.0070.00715.54
7.0.140.0050.03918.69
7.0.130.0080.00815.52
7.0.120.0060.00315.08
7.0.110.0050.00315.52
7.0.100.0000.01015.33
7.0.90.0050.00315.47
7.0.80.0000.01015.36
7.0.70.0010.01918.41
7.0.60.0000.02318.49
7.0.50.0030.02118.66
7.0.40.0020.02716.69
7.0.30.0020.02416.79
7.0.20.0060.03416.67
7.0.10.0030.02816.78
7.0.00.0030.03216.77
5.6.400.0060.00914.52
5.6.390.0070.00314.25
5.6.380.0090.00614.43
5.6.370.0080.00014.34
5.6.360.0000.01114.51
5.6.350.0030.01014.30
5.6.340.0070.00714.30
5.6.330.0040.00814.38
5.6.320.0030.00914.13
5.6.310.0060.01013.91
5.6.300.0040.00414.39
5.6.290.0000.01514.11
5.6.280.0080.03717.72
5.6.270.0040.00414.10
5.6.260.0050.00514.50
5.6.250.0100.00314.44
5.6.240.0070.01014.34
5.6.230.0080.00414.29
5.6.220.0040.01917.54
5.6.210.0040.01717.49
5.6.200.0030.02117.79
5.6.190.0050.02117.77
5.6.180.0030.02617.82
5.6.170.0000.02517.76
5.6.160.0050.02517.83
5.6.150.0060.02017.62
5.6.140.0060.03017.79
5.6.130.0030.04817.55
5.6.120.0020.03317.59
5.6.110.0050.03717.69
5.6.100.0100.03917.91
5.6.90.0020.05017.54
5.6.80.0030.04817.27
5.6.70.0090.04117.40
5.6.60.0050.04217.29
5.6.50.0090.03717.27
5.6.40.0020.04217.20
5.6.30.0050.04117.44
5.6.20.0020.04317.24
5.6.10.0070.04117.31
5.6.00.0070.03917.33
5.5.380.0000.00814.20
5.5.370.0060.00614.21
5.5.360.0020.02117.22
5.5.350.0050.02417.45
5.5.340.0020.02117.54
5.5.330.0020.02217.57
5.5.320.0070.04317.52
5.5.310.0030.04217.48
5.5.300.0060.04017.61
5.5.290.0020.05117.62
5.5.280.0000.05017.47
5.5.270.0020.05117.47
5.5.260.0070.04317.46
5.5.250.0020.04117.43
5.5.240.0050.03717.29
5.5.230.0070.04117.09
5.5.220.0060.03617.13
5.5.210.0080.04117.25
5.5.200.0070.04017.21
5.5.190.0130.03517.19
5.5.180.0030.04717.09
5.5.170.0030.01314.11
5.5.160.0020.04517.17
5.5.150.0030.03617.17
5.5.140.0020.03517.28
5.5.130.0030.03717.11
5.5.120.0000.03617.05
5.5.110.0050.03717.12
5.5.100.0090.04017.04
5.5.90.0120.03217.09
5.5.80.0060.03516.94
5.5.70.0040.04417.09
5.5.60.0050.04417.04
5.5.50.0030.04517.04
5.5.40.0080.03517.23
5.5.30.0070.03817.14
5.5.20.0060.04117.05
5.5.10.0050.04217.10
5.5.00.0080.03717.01
5.4.450.0080.02215.99
5.4.440.0060.04516.05
5.4.430.0060.04316.02
5.4.420.0020.04315.91
5.4.410.0080.03515.89
5.4.400.0080.03715.71
5.4.390.0020.04615.79
5.4.380.0050.03915.88
5.4.370.0030.04015.70
5.4.360.0020.04315.73
5.4.350.0000.03515.75
5.4.340.0070.03515.72
5.4.330.0030.00712.57
5.4.320.0030.03915.81
5.4.310.0020.04015.89
5.4.300.0060.04015.79
5.4.290.0060.03315.73
5.4.280.0060.03315.89
5.4.270.0030.03315.75
5.4.260.0030.04215.79
5.4.250.0050.04415.85
5.4.240.0030.03915.79
5.4.230.0050.03015.76
5.4.220.0030.04015.71
5.4.210.0080.03815.85
5.4.200.0040.04115.73
5.4.190.0050.03815.71
5.4.180.0080.03415.88
5.4.170.0020.04315.79
5.4.160.0050.02315.69
5.4.150.0050.03915.82
5.4.140.0050.03514.45
5.4.130.0050.03714.46
5.4.120.0030.03314.38
5.4.110.0020.04314.45
5.4.100.0020.04114.55
5.4.90.0040.04014.47
5.4.80.0020.02714.53
5.4.70.0050.03714.43
5.4.60.0070.03414.52
5.4.50.0020.04014.52
5.4.40.0030.04014.53
5.4.30.0020.04114.51
5.4.20.0060.03114.44
5.4.10.0080.03014.46
5.4.00.0060.03414.19
5.3.290.0010.03313.71
5.3.280.0040.03713.71
5.3.270.0030.03713.71
5.3.260.0020.03613.71
5.3.250.0000.04313.71
5.3.240.0050.03713.71
5.3.230.0050.03513.71
5.3.220.0020.04013.71
5.3.210.0020.04613.71
5.3.200.0020.04113.71
5.3.190.0020.04013.71
5.3.180.0020.02613.71
5.3.170.0010.02913.71
5.3.160.0000.04013.71
5.3.150.0030.03813.71
5.3.140.0060.03513.71
5.3.130.0000.04413.71
5.3.120.0050.02713.71
5.3.110.0050.02713.71
5.3.100.0000.03013.71
5.3.90.0030.03113.71
5.3.80.0050.03213.71
5.3.70.0020.03713.71
5.3.60.0020.02713.71
5.3.50.0030.03913.71
5.3.40.0050.03913.71
5.3.30.0050.03713.71
5.3.20.0010.03813.71
5.3.10.0030.03613.71
5.3.00.0030.04313.71
5.2.170.0070.02714.85
5.2.160.0000.03714.85
5.2.150.0070.05014.85
5.2.140.0000.06314.85
5.2.130.0100.05314.85
5.2.120.0000.05314.85
5.2.110.0000.06714.85
5.2.100.0030.05714.85
5.2.90.0030.05314.85
5.2.80.0100.05314.85
5.2.70.0100.06014.85
5.2.60.0030.06014.85
5.2.50.0000.06014.85
5.2.40.0030.06014.85
5.2.30.0000.06714.85
5.2.20.0070.05714.85
5.2.10.0000.04014.85
5.2.00.0030.06014.85
5.1.60.0030.05014.85
5.1.50.0070.04714.85
5.1.40.0070.04314.85
5.1.30.0030.05714.85
5.1.20.0030.05714.85
5.1.10.0000.05314.85
5.1.00.0070.04714.85
5.0.50.0030.04014.85
5.0.40.0000.04314.85
5.0.30.0070.06014.85
5.0.20.0100.03314.85
5.0.10.0030.03714.85
5.0.00.0070.05714.85
4.4.90.0030.03014.85
4.4.80.0000.03314.85
4.4.70.0000.03714.85
4.4.60.0070.02314.85
4.4.50.0000.03714.85
4.4.40.0000.05314.85
4.4.30.0030.03714.85
4.4.20.0000.03714.85
4.4.10.0030.02714.85
4.4.00.0000.05714.85
4.3.110.0000.03714.85
4.3.100.0030.03314.85
4.3.90.0000.03014.85
4.3.80.0030.04014.85
4.3.70.0030.03314.85
4.3.60.0030.02714.85
4.3.50.0000.03314.85
4.3.40.0000.05714.85
4.3.30.0030.03314.85
4.3.20.0000.03314.85
4.3.10.0030.03314.85
4.3.00.0030.03314.85

preferences:
47.12 ms | 401 KiB | 5 Q