3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo Module::work('hello world.'), "\n"; echo MyModule::work('hello world.'), "\n"; echo YourModule::work('hello world.'); abstract class Module { private static $mask = '[[[%s]]]'; public static function work($it) { return preg_replace_callback('~\w+~', 'static::replace', $it); } private static function replace($matches) { return sprintf(static::$mask, $matches[0]); } } abstract class MyModule extends Module { protected static $mask = '{{{%s}}}'; } abstract class YourModule extends Module { protected static $mask = '***%s***'; public static function work($it) { return call_user_func('parent::work', $it); } }

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.70.0100.01318.68
8.3.60.0090.00618.55
8.3.50.0120.01021.09
8.3.40.0110.00719.04
8.3.30.0040.01119.15
8.3.20.0040.00418.85
8.3.10.0090.00020.73
8.3.00.0040.00423.72
8.2.180.0080.01316.75
8.2.170.0100.00722.96
8.2.160.0150.00022.17
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0080.00019.75
8.2.110.0000.01022.21
8.2.100.0040.00818.03
8.2.90.0000.00819.20
8.2.80.0030.00617.97
8.2.70.0060.00317.75
8.2.60.0040.00418.03
8.2.50.0000.00818.07
8.2.40.0050.00318.22
8.2.30.0080.00019.87
8.2.20.0050.00317.83
8.2.10.0040.00417.73
8.2.00.0050.00317.72
8.1.280.0170.00325.92
8.1.270.0040.00423.99
8.1.260.0100.00626.35
8.1.250.0040.00428.09
8.1.240.0070.00322.24
8.1.230.0030.00920.90
8.1.220.0000.00818.77
8.1.210.0030.00618.77
8.1.200.0130.00017.11
8.1.190.0030.00617.39
8.1.180.0040.00418.10
8.1.170.0030.00618.84
8.1.160.0070.00018.79
8.1.150.0040.00418.59
8.1.140.0030.00617.36
8.1.130.0040.00417.88
8.1.120.0040.00417.48
8.1.110.0000.00717.41
8.1.100.0030.00417.41
8.1.90.0000.00717.53
8.1.80.0040.00417.53
8.1.70.0030.00317.43
8.1.60.0050.00317.73
8.1.50.0040.00417.49
8.1.40.0080.00017.56
8.1.30.0040.00417.74
8.1.20.0030.00617.69
8.1.10.0040.00417.69
8.1.00.0040.00417.62
8.0.300.0000.00719.88
8.0.290.0050.00216.88
8.0.280.0040.00318.54
8.0.270.0070.00017.20
8.0.260.0070.00016.89
8.0.250.0000.00817.07
8.0.240.0000.00817.13
8.0.230.0030.00316.91
8.0.220.0000.00716.98
8.0.210.0000.00717.00
8.0.200.0000.00716.93
8.0.190.0000.00716.90
8.0.180.0000.00716.99
8.0.170.0040.00416.99
8.0.160.0040.00417.02
8.0.150.0000.00816.97
8.0.140.0080.00016.91
8.0.130.0050.00313.48
8.0.120.0000.00717.02
8.0.110.0050.00316.93
8.0.100.0040.00416.99
8.0.90.0040.00417.02
8.0.80.0040.01116.98
8.0.70.0040.00416.85
8.0.60.0080.00016.86
8.0.50.0040.00417.00
8.0.30.0120.00617.25
8.0.20.0150.00617.46
8.0.10.0040.00416.96
8.0.00.0120.01116.87
7.4.330.0000.00614.85
7.4.320.0000.00816.71
7.4.300.0040.00416.82
7.4.290.0040.00416.83
7.4.280.0040.00416.63
7.4.270.0030.00516.83
7.4.260.0000.00513.42
7.4.250.0030.00616.61
7.4.240.0050.00216.83
7.4.230.0000.00816.72
7.4.220.0070.01816.92
7.4.210.0080.00716.70
7.4.200.0070.00016.93
7.4.190.0080.00016.71
7.4.160.0170.00316.39
7.4.150.0220.00317.40
7.4.140.0080.01117.86
7.4.130.0100.01016.75
7.4.120.0100.00716.79
7.4.110.0060.01016.71
7.4.100.0070.01116.71
7.4.90.0090.00916.76
7.4.80.0150.00319.04
7.4.70.0030.01616.86
7.4.60.0030.01316.52
7.4.50.0030.00616.89
7.4.40.0000.01222.27
7.4.30.0070.01016.51
7.4.10.0130.00616.84
7.4.00.0030.01315.53
7.3.330.0050.00013.35
7.3.320.0030.00313.35
7.3.310.0030.00516.54
7.3.300.0070.00016.40
7.3.290.0150.00016.39
7.3.280.0100.00816.43
7.3.270.0170.00017.40
7.3.260.0050.01518.24
7.3.250.0080.01116.52
7.3.240.0120.00916.70
7.3.230.0120.00516.63
7.3.210.0100.00916.45
7.3.200.0120.00419.39
7.3.190.0060.01616.61
7.3.180.0100.00616.78
7.3.170.0090.00616.71
7.3.160.0100.00616.82
7.3.130.0090.00916.46
7.3.120.0060.01015.61
7.3.110.0110.00515.75
7.3.100.0110.00415.80
7.3.90.0050.00515.69
7.3.80.0080.00515.72
7.3.70.0030.00815.76
7.3.60.0030.01415.72
7.3.50.0070.00515.76
7.3.40.0050.00915.69
7.3.30.0050.00715.62
7.3.20.0010.01117.62
7.3.10.0060.00717.20
7.3.00.0040.00817.14
7.2.330.0030.01916.82
7.2.320.0100.00616.83
7.2.310.0110.00716.82
7.2.300.0110.00616.83
7.2.290.0070.01316.63
7.2.260.0030.01716.61
7.2.250.0070.01016.04
7.2.240.0080.01015.99
7.2.230.0060.01116.03
7.2.220.0050.01115.98
7.2.210.0040.00915.99
7.2.200.0070.00816.06
7.2.190.0040.01415.84
7.2.180.0060.00915.87
7.2.170.0110.00315.96
7.2.160.0040.01116.87
7.2.150.0040.00818.32
7.2.140.0070.00418.60
7.2.130.0040.00917.46
7.2.120.0040.01017.54
7.2.110.0080.00517.46
7.2.100.0070.00617.58
7.2.90.0050.01017.48
7.2.80.0070.00517.43
7.2.70.0030.01217.46
7.2.60.0080.00517.49
7.2.50.0070.00417.60
7.2.40.0050.00817.58
7.2.30.0070.00617.62
7.2.20.0060.00717.56
7.2.10.0060.00617.46
7.2.00.0060.00817.47
7.1.330.0050.01216.65
7.1.320.0050.00716.55
7.1.310.0040.00816.82
7.1.300.0090.00616.62
7.1.290.0050.00716.80
7.1.280.0030.01116.66
7.1.270.0050.00716.57
7.1.260.0080.00716.55
7.1.250.0060.00616.43
7.1.240.0030.01217.45
7.1.230.0000.01517.47
7.1.220.0040.00817.42
7.1.210.0030.01417.54
7.1.200.0040.00817.48
7.1.190.0030.01017.54
7.1.180.0000.01217.45
7.1.170.0000.00917.50
7.1.160.0040.00717.59
7.1.150.0100.00317.37
7.1.140.0080.00417.41
7.1.130.0040.01117.49
7.1.120.0080.00617.54
7.1.110.0090.00317.66
7.1.100.0070.00717.53
7.1.90.0030.01417.48
7.1.80.0000.00917.57
7.1.70.0020.01017.28
7.1.60.0070.01118.48
7.1.50.0100.00817.30
7.1.40.0000.01117.44
7.1.30.0040.01217.52
7.1.20.0100.00317.43
7.1.10.0150.00017.55
7.1.00.0100.03519.94
7.0.330.0080.00317.25
7.0.320.0030.01017.27
7.0.310.0000.01217.11
7.0.300.0000.01417.08
7.0.290.0070.01117.16
7.0.280.0040.00817.14
7.0.270.0060.00617.15
7.0.260.0000.00917.13
7.0.250.0090.00617.15
7.0.240.0120.00616.98
7.0.230.0030.01417.24
7.0.220.0070.00417.40
7.0.210.0000.01217.13
7.0.200.0040.00716.76
7.0.190.0030.01317.11
7.0.180.0000.01317.20
7.0.170.0080.00317.07
7.0.160.0100.00617.33
7.0.150.0110.00617.20
7.0.140.0050.04019.55
7.0.130.0080.00417.12
7.0.120.0000.01017.16
7.0.110.0070.00717.24
7.0.100.0030.01017.11
7.0.90.0000.01117.23
7.0.80.0060.00817.20
7.0.70.0030.00617.27
7.0.60.0080.02018.30
7.0.50.0070.04017.50
7.0.40.0110.04216.51
7.0.30.0050.04916.46
7.0.20.0050.04316.45
7.0.10.0060.02616.46
7.0.00.0070.03516.43
5.6.400.0090.00615.92
5.6.390.0060.00615.70
5.6.380.0030.01315.62
5.6.370.0110.00015.89
5.6.360.0030.01015.82
5.6.350.0030.00616.30
5.6.340.0100.00616.05
5.6.330.0030.00615.80
5.6.320.0060.01215.57
5.6.310.0060.00916.09
5.6.300.0040.01115.81
5.6.290.0130.00315.98
5.6.280.0050.03618.65
5.6.270.0030.00915.75
5.6.260.0030.01315.74
5.6.250.0030.00715.93
5.6.240.0070.01015.71
5.6.230.0060.00915.91
5.6.220.0060.00615.82
5.6.210.0060.04418.20
5.6.200.0070.04317.01
5.6.190.0040.04717.03
5.6.180.0050.04117.04
5.6.170.0100.03317.11
5.6.160.0030.02616.98
5.6.150.0060.02617.00
5.6.140.0080.03217.01
5.6.130.0050.04716.99
5.6.120.0080.04317.04
5.6.110.0020.02617.21
5.6.100.0100.04117.06
5.6.90.0040.02917.07
5.6.80.0060.04316.80
5.6.70.0070.03816.71
5.6.60.0070.04516.59
5.6.50.0100.04016.75
5.6.40.0050.04316.86
5.6.30.0070.02816.62
5.6.20.0050.04316.68
5.6.10.0050.02516.60
5.6.00.0050.03216.68
5.5.380.0060.00915.86
5.5.370.0000.01415.68
5.5.360.0060.00916.04
5.5.350.1620.02418.08
5.5.340.0040.03216.80
5.5.330.0070.04316.81
5.5.320.0050.03916.87
5.5.310.0050.03716.78
5.5.300.0100.03516.83
5.5.290.0090.02216.87
5.5.280.0030.02716.78
5.5.270.0070.02216.81
5.5.260.0110.02616.93
5.5.250.0150.03316.75
5.5.240.0090.03116.45
5.5.230.0090.04016.53
5.5.220.0120.03816.40
5.5.210.0060.03816.36
5.5.200.0110.03816.42
5.5.190.0100.03716.47
5.5.180.0050.04816.38
5.5.170.0040.00715.70
5.5.160.0080.02316.51
5.5.150.0110.03816.56
5.5.140.0060.02716.52
5.5.130.0100.03016.53
5.5.120.0030.03016.54
5.5.110.0060.02616.36
5.5.100.0050.02816.37
5.5.90.0080.03016.44
5.5.80.0080.02816.34
5.5.70.0080.02516.34
5.5.60.0070.03016.48
5.5.50.0030.03716.44
5.5.40.0100.03016.38
5.5.30.0070.03716.47
5.5.20.0060.02516.40
5.5.10.0030.02816.45
5.5.00.0050.04216.56
5.4.450.0070.02815.91
5.4.440.0050.02316.04
5.4.430.0080.02716.00
5.4.420.0050.04216.13
5.4.410.0060.03316.15
5.4.400.0050.03715.83
5.4.390.0070.02815.88
5.4.380.0040.04715.74
5.4.370.0020.03415.74
5.4.360.0070.03715.71
5.4.350.0080.03715.76
5.4.340.0090.02115.85
5.4.330.0040.00412.47
5.4.320.0020.03015.82
5.4.310.0100.02115.90
5.4.300.0050.02615.68
5.4.290.0030.04515.75
5.4.280.0030.03115.85
5.4.270.0050.04615.89
5.4.260.0030.02815.77
5.4.250.0050.03515.66
5.4.240.0080.03815.71
5.4.230.0110.03015.93
5.4.220.0070.02515.87
5.4.210.0030.04215.91
5.4.200.0050.03115.90
5.4.190.0030.04015.87
5.4.180.0090.02815.74
5.4.170.0020.02715.86
5.4.160.0100.03815.82
5.4.150.0030.04315.79
5.4.140.0050.03714.65
5.4.130.0000.04314.59
5.4.120.0070.03714.40
5.4.110.0030.02214.63
5.4.100.0050.02514.52
5.4.90.0020.03114.41
5.4.80.0070.03714.53
5.4.70.0050.03514.56
5.4.60.0060.02614.52
5.4.50.0020.02414.52
5.4.40.0070.02514.47
5.4.30.0050.03714.38
5.4.20.0030.03214.47
5.4.10.0070.02514.35
5.4.00.0020.02714.21
5.3.290.0030.04213.90
5.3.280.0060.03013.85
5.3.270.0090.01713.75
5.3.260.0030.03813.86
5.3.250.0020.04213.77
5.3.240.0070.03513.86
5.3.230.0060.03913.72
5.3.220.0020.02913.81
5.3.210.0050.03313.83
5.3.200.0070.02313.84
5.3.190.0030.04713.91
5.3.180.0070.03713.80
5.3.170.0010.04313.85
5.3.160.0020.03813.80
5.3.150.0040.02513.94
5.3.140.0040.02314.03
5.3.130.0090.04413.77
5.3.120.0030.03713.81
5.3.110.0020.04913.82
5.3.100.0000.02713.51
5.3.90.0030.02113.61
5.3.80.0040.02013.54
5.3.70.0050.04013.60
5.3.60.0070.03913.65
5.3.50.0030.04213.41
5.3.40.0050.03013.53
5.3.30.0020.02413.46
5.3.20.0080.02013.35
5.3.10.0020.04213.43
5.3.00.0060.02513.32
5.2.170.0030.06711.20
5.2.160.0100.04711.04
5.2.150.0000.03311.17
5.2.140.0030.04311.24
5.2.130.0070.05711.21
5.2.120.0030.06011.32
5.2.110.0000.04710.96
5.2.100.0100.06011.20
5.2.90.0030.04311.32
5.2.80.0000.06311.16
5.2.70.0000.05011.13
5.2.60.0000.04010.90
5.2.50.0100.05711.04
5.2.40.0000.04710.89
5.2.30.0070.03710.98
5.2.20.0070.05711.00
5.2.10.0070.05710.82
5.2.00.0030.05710.77
5.1.60.0170.03710.01
5.1.50.0000.02710.08
5.1.40.0000.02710.01
5.1.30.0030.02310.38
5.1.20.0030.02310.43
5.1.10.0030.02310.11
5.1.00.0000.02710.01
5.0.50.0000.02010.01
5.0.40.0000.02010.01
5.0.30.0000.03010.01
5.0.20.0030.01710.01
5.0.10.0070.01310.01
5.0.00.0000.03010.01
4.4.90.0000.02710.01
4.4.80.0000.04010.01
4.4.70.0000.03010.01
4.4.60.0000.03710.01
4.4.50.0000.02010.01
4.4.40.0000.03310.01
4.4.30.0030.01310.01
4.4.20.0000.01710.01
4.4.10.0030.01310.01
4.4.00.0000.02310.01
4.3.110.0030.01310.01
4.3.100.0000.01310.01
4.3.90.0100.01010.01
4.3.80.0030.02310.01
4.3.70.0030.01310.01
4.3.60.0030.01310.01
4.3.50.0000.01310.01
4.3.40.0000.02310.01
4.3.30.0030.01010.01
4.3.20.0000.01710.01
4.3.10.0000.01310.01
4.3.00.0030.01710.01

preferences:
67.66 ms | 401 KiB | 5 Q