3v4l.org

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

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.0040.01118.63
8.3.50.0090.01121.27
8.3.40.0110.00418.90
8.3.30.0180.00320.27
8.3.20.0040.00420.33
8.3.10.0000.00822.08
8.3.00.0040.00422.45
8.2.180.0120.00316.75
8.2.170.0000.01522.96
8.2.160.0070.00722.08
8.2.150.0000.00924.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0050.00321.11
8.2.110.0030.00622.08
8.2.100.0070.00318.03
8.2.90.0030.00519.06
8.2.80.0070.00019.39
8.2.70.0000.00817.88
8.2.60.0040.00418.05
8.2.50.0080.00018.07
8.2.40.0040.00420.00
8.2.30.0040.00419.52
8.2.20.0040.00417.75
8.2.10.0040.00417.91
8.2.00.0040.00417.84
8.1.280.0120.00325.92
8.1.270.0070.00023.99
8.1.260.0070.01126.35
8.1.250.0060.00328.09
8.1.240.0060.01023.97
8.1.230.0110.00019.10
8.1.220.0030.00517.76
8.1.210.0080.00018.77
8.1.200.0040.00417.35
8.1.190.0080.00017.30
8.1.180.0040.00418.10
8.1.170.0000.00918.59
8.1.160.0090.00418.79
8.1.150.0050.00318.63
8.1.140.0040.00417.57
8.1.130.0030.00317.83
8.1.120.0070.00017.56
8.1.110.0030.00617.46
8.1.100.0090.00017.52
8.1.90.0000.00717.35
8.1.80.0000.00717.39
8.1.70.0030.00317.46
8.1.60.0060.00317.60
8.1.50.0000.00717.60
8.1.40.0050.00317.62
8.1.30.0000.00817.77
8.1.20.0030.00617.73
8.1.10.0000.00717.63
8.1.00.0030.00517.59
8.0.300.0040.00418.77
8.0.290.0070.00017.18
8.0.280.0050.00318.47
8.0.270.0070.00017.27
8.0.260.0050.00316.89
8.0.250.0000.00717.09
8.0.240.0090.00017.09
8.0.230.0030.00317.02
8.0.220.0070.00016.96
8.0.210.0000.00816.88
8.0.200.0060.00016.96
8.0.190.0000.01117.05
8.0.180.0050.00216.89
8.0.170.0040.00416.91
8.0.160.0000.00716.95
8.0.150.0000.00716.75
8.0.140.0000.00716.89
8.0.130.0000.00513.43
8.0.120.0020.00516.93
8.0.110.0080.00016.97
8.0.100.0040.00416.80
8.0.90.0070.00016.89
8.0.80.0060.00916.86
8.0.70.0070.00016.88
8.0.60.0040.00416.98
8.0.50.0000.00716.76
8.0.30.0120.01017.10
8.0.20.0130.01017.40
8.0.10.0040.00416.95
8.0.00.0070.01216.81
7.4.330.0000.00515.01
7.4.320.0050.00216.64
7.4.300.0000.00616.59
7.4.290.0080.00016.64
7.4.280.0060.00316.79
7.4.270.0070.00016.77
7.4.260.0000.00613.42
7.4.250.0000.00716.75
7.4.240.0040.00416.72
7.4.230.0040.00316.73
7.4.220.0140.00716.83
7.4.210.0060.00916.62
7.4.200.0040.00416.73
7.4.190.0030.00316.91
7.4.160.0130.00316.57
7.4.150.0150.00617.40
7.4.140.0120.01117.86
7.4.130.0100.00716.67
7.4.120.0090.00816.76
7.4.110.0110.00716.84
7.4.100.0140.00416.36
7.4.90.0070.01116.70
7.4.80.0120.00919.39
7.4.70.0100.00716.50
7.4.60.0060.01216.84
7.4.50.0090.00016.44
7.4.40.0140.00022.77
7.4.30.0110.00616.73
7.4.00.0120.00314.96
7.3.330.0000.00613.48
7.3.320.0000.00613.54
7.3.310.0070.00016.61
7.3.300.0030.00316.54
7.3.290.0000.01416.46
7.3.280.0080.00916.46
7.3.270.0070.01017.40
7.3.260.0180.00616.45
7.3.250.0120.00616.65
7.3.240.0060.01116.50
7.3.230.0120.00616.53
7.3.210.0090.00916.47
7.3.200.0190.00919.39
7.3.190.0060.01616.42
7.3.180.0150.00616.38
7.3.170.0070.01016.42
7.3.160.0030.01316.54
7.3.120.0090.00914.89
7.3.110.0030.01415.06
7.3.100.0040.01214.97
7.3.90.0000.01014.90
7.3.80.0090.00615.05
7.3.70.0090.00914.86
7.3.60.0070.00715.05
7.3.50.0060.00614.90
7.3.40.0110.00414.54
7.3.30.0060.00914.67
7.3.20.0060.00916.96
7.3.10.0060.00916.77
7.3.00.0100.00716.63
7.2.330.0030.01416.83
7.2.320.0060.01016.90
7.2.310.0090.00616.58
7.2.300.0120.00616.78
7.2.290.0090.01216.63
7.2.240.0000.01214.85
7.2.230.0030.00915.30
7.2.220.0090.00615.06
7.2.210.0090.00614.93
7.2.200.0140.00015.14
7.2.190.0100.00715.03
7.2.180.0030.01215.22
7.2.170.0000.01815.06
7.2.160.0090.00915.27
7.2.150.0120.00617.04
7.2.140.0040.01416.72
7.2.130.0060.00917.02
7.2.120.0060.00316.88
7.2.110.0100.00717.10
7.2.100.0060.00616.91
7.2.90.0100.00716.91
7.2.80.0030.01417.24
7.2.70.0070.00717.04
7.2.60.0040.01416.95
7.2.50.0070.01017.00
7.2.40.0100.00616.86
7.2.30.0080.01117.09
7.2.20.0090.00617.05
7.2.10.0040.01117.13
7.2.00.0090.00617.16
7.1.330.0070.00715.98
7.1.320.0100.00715.99
7.1.310.0090.00616.23
7.1.300.0120.00416.12
7.1.290.0060.00315.88
7.1.280.0090.00615.87
7.1.270.0100.00615.88
7.1.260.0070.01015.96
7.1.250.0030.01215.68
7.1.100.0060.00618.09
7.1.70.0040.00417.50
7.1.60.0070.01519.21
7.1.50.0140.01116.89
7.1.00.0030.05722.52
7.0.200.0150.00814.96
7.0.140.0030.07322.04
7.0.70.0100.03721.82
7.0.60.0000.04321.66
7.0.50.0030.03722.09
7.0.40.0000.04320.14
7.0.30.0000.03719.95
7.0.20.0030.05720.04
7.0.10.0030.04320.05
7.0.00.0000.04720.18
5.6.280.0100.06720.90
5.6.220.0070.05720.51
5.6.210.0030.04020.54
5.6.200.0070.03021.11
5.6.190.0070.03721.11
5.6.180.0000.03321.10
5.6.170.0030.04721.10
5.6.160.0070.07721.17
5.6.150.0030.03721.02
5.6.140.0030.05321.17
5.6.130.0030.04321.02
5.6.120.0000.04321.05
5.6.110.0030.04020.88
5.6.100.0030.04020.99
5.6.90.0030.05020.91
5.6.80.0000.03320.39
5.6.70.0030.03320.38
5.6.60.0000.03320.41
5.6.50.0030.03020.39
5.6.40.0070.02720.33
5.6.30.0070.02720.35
5.6.20.0100.02320.31
5.6.10.0070.02720.45
5.6.00.0000.03320.48
5.5.360.0000.06720.25
5.5.350.0030.04020.29
5.5.340.0000.03320.77
5.5.330.0030.04020.90
5.5.320.0030.03320.86
5.5.310.0000.03320.73
5.5.300.0030.05320.76
5.5.290.0030.04020.87
5.5.280.0000.04720.83
5.5.270.0000.03720.87
5.5.260.0070.04320.87
5.5.250.0070.03320.70
5.5.240.0070.02720.25
5.5.230.0030.04020.21
5.5.220.0000.03320.27
5.5.210.0030.03020.20
5.5.200.0000.03320.25
5.5.190.0000.03320.23
5.5.180.0030.03020.15
5.5.160.0030.03020.24
5.5.150.0000.03320.15
5.5.140.0030.03320.23
5.5.130.0070.02720.11
5.5.120.0030.03020.08
5.5.110.0000.04020.18
5.5.100.0030.03019.96
5.5.90.0030.03720.08
5.5.80.0000.03020.02
5.5.70.0000.04020.10
5.5.60.0000.03319.96
5.5.50.0030.04720.06
5.5.40.0100.03020.16
5.5.30.0000.04019.93
5.5.20.0030.04020.04
5.5.10.0070.05720.12
5.5.00.0030.06720.11
5.4.450.0000.04019.20
5.4.440.0030.04019.36
5.4.430.0000.04019.19
5.4.420.0030.04719.35
5.4.410.0000.03319.21
5.4.400.0030.03019.03
5.4.390.0070.03019.18
5.4.380.0000.05019.01
5.4.370.0000.03019.03
5.4.360.0000.03319.16
5.4.350.0000.03319.03
5.4.340.0000.03019.20
5.4.320.0000.03319.18
5.4.310.0000.04019.04
5.4.300.0030.02718.88
5.4.290.0000.03019.12
5.4.280.0000.03318.93
5.4.270.0000.04319.20
5.4.260.0030.03719.20
5.4.250.0030.02719.17
5.4.240.0000.03319.02
5.4.230.0000.07019.11
5.4.220.0000.03318.88
5.4.210.0000.06719.09
5.4.200.0030.04018.83
5.4.190.0030.03019.09
5.4.180.0070.04719.20
5.4.170.0000.07719.01
5.4.160.0030.06718.83
5.4.150.0030.06019.09
5.4.140.0000.08016.45
5.4.130.0000.06016.25
5.4.120.0070.06716.44
5.4.110.0070.06716.55
5.4.100.0030.07316.38
5.4.90.0070.05716.48
5.4.80.0000.08016.52
5.4.70.0000.06716.51
5.4.60.0070.05716.41
5.4.50.0000.05316.28
5.4.40.0000.07316.53
5.4.30.0070.06716.37
5.4.20.0000.07316.40
5.4.10.0030.07716.32
5.4.00.0000.06015.82
5.3.290.0030.03014.79
5.3.280.0030.03714.69
5.3.270.0000.06314.67
5.3.260.0070.07714.54
5.3.250.0100.03714.66
5.3.240.0070.07314.62
5.3.230.0100.07014.57
5.3.220.0000.06314.59
5.3.210.0030.07714.57
5.3.200.0030.07314.52
5.3.190.0070.03714.63
5.3.180.0030.07014.50
5.3.170.0000.06314.68
5.3.160.0030.05714.56
5.3.150.0070.07314.60
5.3.140.0000.05014.58
5.3.130.0030.06314.48
5.3.120.0030.07314.49
5.3.110.0100.07014.50
5.3.100.0000.08014.00
5.3.90.0030.07314.03
5.3.80.0000.07314.13
5.3.70.0130.06013.95
5.3.60.0100.06713.89
5.3.50.0070.04713.86
5.3.40.0070.06313.93
5.3.30.0030.07314.05
5.3.20.0030.04713.71
5.3.10.0000.05313.59
5.3.00.0000.05713.63
5.2.170.0000.06011.01
5.2.160.0030.06311.08
5.2.150.0000.06311.14
5.2.140.0030.05711.27
5.2.130.0000.05011.11
5.2.120.0030.05311.14
5.2.110.0100.05711.17
5.2.100.0000.05010.97
5.2.90.0070.04011.16
5.2.80.0000.04710.99
5.2.70.0000.04311.02
5.2.60.0070.05711.17
5.2.50.0030.04711.16
5.2.40.0000.06311.07
5.2.30.0070.05710.91
5.2.20.0070.04011.03
5.2.10.0030.06010.98
5.2.00.0000.04710.71
5.1.60.0130.04010.43
5.1.50.0030.04710.43
5.1.40.0000.04310.43
5.1.30.0030.04310.43
5.1.20.0030.04010.45
5.1.10.0000.05710.43
5.1.00.0030.05710.43
5.0.50.0000.02710.43
5.0.40.0000.03010.43
5.0.30.0030.05010.43
5.0.20.0000.02310.43
5.0.10.0000.02710.43
5.0.00.0030.06310.43
4.4.90.0070.02010.43
4.4.80.0070.03310.43
4.4.70.0030.01710.43
4.4.60.0000.03010.43
4.4.50.0030.02310.43
4.4.40.0000.04010.43
4.4.30.0030.03710.43
4.4.20.0000.02710.43
4.4.10.0100.02310.43
4.4.00.0030.04710.43
4.3.110.0000.02010.43
4.3.100.0000.02010.43
4.3.90.0000.01710.43
4.3.80.0000.04010.43
4.3.70.0070.01710.43
4.3.60.0000.02310.43
4.3.50.0000.02710.43
4.3.40.0070.02310.43
4.3.30.0030.02310.43
4.3.20.0030.03010.43
4.3.10.0000.02310.43
4.3.00.0000.02010.43

preferences:
45.44 ms | 401 KiB | 5 Q