3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo Module::work('hello world.'), "\n"; echo MyModule::work('hello world.'); abstract class Module { public static function work($it) { return preg_replace_callback('~\w+~', 'static::replace', $it); } protected static function replace($matches) { return sprintf('[[[%s]]]', $matches[0]); } } abstract class MyModule extends Module { protected static function replace($matches) { return sprintf('{{{%s}}}', $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.40.0110.00719.06
8.3.30.0140.00019.09
8.3.20.0050.00320.31
8.3.10.0080.00023.48
8.3.00.0000.00820.69
8.2.170.0120.00322.96
8.2.160.0070.00722.31
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0000.00922.27
8.2.110.0030.00622.20
8.2.100.0000.01218.03
8.2.90.0040.00419.10
8.2.80.0000.00817.97
8.2.70.0060.00317.75
8.2.60.0030.00717.92
8.2.50.0000.00818.07
8.2.40.0070.00019.37
8.2.30.0050.00318.14
8.2.20.0080.00017.84
8.2.10.0040.00417.70
8.2.00.0050.00517.73
8.1.270.0000.00823.92
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0040.00423.99
8.1.230.0030.00719.01
8.1.220.0080.00017.75
8.1.210.0060.00318.77
8.1.200.0030.00617.50
8.1.190.0060.00317.25
8.1.180.0050.00318.10
8.1.170.0060.00318.58
8.1.160.0000.00821.97
8.1.150.0040.00418.63
8.1.140.0040.00717.38
8.1.130.0000.00717.77
8.1.120.0040.00417.43
8.1.110.0040.00417.37
8.1.100.0040.00417.52
8.1.90.0000.00717.38
8.1.80.0000.00717.38
8.1.70.0070.00017.41
8.1.60.0060.00317.60
8.1.50.0030.00617.60
8.1.40.0030.00617.68
8.1.30.0050.00317.66
8.1.20.0000.00817.57
8.1.10.0000.00817.64
8.1.00.0040.00717.55
8.0.300.0020.00518.77
8.0.290.0000.00817.16
8.0.280.0030.00318.32
8.0.270.0000.00717.27
8.0.260.0080.00017.03
8.0.250.0030.00317.14
8.0.240.0000.01017.09
8.0.230.0040.00416.91
8.0.220.0070.00016.93
8.0.210.0040.00316.97
8.0.200.0030.00316.89
8.0.190.0000.00817.05
8.0.180.0040.00416.88
8.0.170.0090.00016.97
8.0.160.0040.00416.85
8.0.150.0000.00716.79
8.0.140.0040.00416.75
8.0.130.0030.00313.30
8.0.120.0000.00916.81
8.0.110.0050.00216.98
8.0.100.0030.00516.86
8.0.90.0000.00816.91
8.0.80.0100.01016.89
8.0.70.0040.00416.96
8.0.60.0080.00016.95
8.0.50.0000.00816.91
8.0.30.0140.00517.18
8.0.20.0120.00817.45
8.0.10.0050.00217.08
8.0.00.0090.01316.82
7.4.330.0050.00015.00
7.4.320.0060.00016.59
7.4.300.0000.00616.55
7.4.290.0000.00716.63
7.4.280.0030.00316.64
7.4.270.0000.00716.61
7.4.260.0030.00316.61
7.4.250.0080.00016.54
7.4.240.0020.00516.54
7.4.230.0040.00416.54
7.4.220.0210.00616.77
7.4.210.0080.00816.68
7.4.200.0030.00316.75
7.4.190.0000.00716.61
7.4.160.0080.00816.79
7.4.150.0060.01417.40
7.4.140.0110.00617.86
7.4.130.0090.00916.79
7.4.120.0070.01016.63
7.4.110.0070.01016.56
7.4.100.0130.00916.73
7.4.90.0030.01616.52
7.4.80.0110.00716.44
7.4.70.0200.00316.63
7.4.60.0080.00816.64
7.4.50.0030.00316.75
7.4.40.0070.00422.77
7.4.30.0070.01016.78
7.4.10.0090.00915.26
7.4.00.0060.01015.07
7.3.330.0000.00613.20
7.3.320.0000.00513.25
7.3.310.0050.00216.45
7.3.300.0070.00016.42
7.3.290.0080.00516.41
7.3.280.0080.00816.42
7.3.270.0150.00417.40
7.3.260.0060.01216.64
7.3.250.0130.00716.44
7.3.240.0060.01016.71
7.3.230.0030.01216.39
7.3.210.0030.01716.70
7.3.200.0110.00719.39
7.3.190.0120.00916.59
7.3.180.0130.00616.53
7.3.170.0130.00716.70
7.3.160.0120.00316.38
7.3.130.0110.00314.74
7.3.120.0070.00814.80
7.3.110.0100.00714.88
7.3.100.0040.01014.95
7.3.90.0060.00914.69
7.3.80.0040.00714.84
7.3.70.0030.01314.81
7.3.60.0040.00814.82
7.3.50.0120.00314.86
7.3.40.0040.01114.81
7.3.30.0080.00414.97
7.3.20.0070.00716.81
7.3.10.0080.00816.95
7.3.00.0070.00716.85
7.2.330.0130.00316.70
7.2.320.0080.00916.68
7.2.310.0120.00616.72
7.2.300.0070.01016.88
7.2.290.0100.00716.72
7.2.260.0030.01015.12
7.2.250.0030.01615.19
7.2.240.0090.00915.19
7.2.230.0070.01015.30
7.2.220.0100.00715.09
7.2.210.0030.01215.34
7.2.200.0090.00015.37
7.2.190.0080.00414.81
7.2.180.0040.00815.27
7.2.170.0070.00715.29
7.2.160.0070.00714.96
7.2.150.0060.00616.70
7.2.140.0000.01117.03
7.2.130.0070.01116.82
7.2.120.0110.00317.15
7.2.110.0030.00717.21
7.2.100.0120.00317.02
7.2.90.0100.00716.80
7.2.80.0100.00017.10
7.2.70.0100.00717.23
7.2.60.0060.00716.91
7.2.50.0060.00916.93
7.2.40.0030.00617.07
7.2.30.0040.01216.99
7.2.20.0000.01016.79
7.2.10.0060.01016.76
7.2.00.0030.00918.09
7.1.330.0030.00916.13
7.1.320.0040.01115.95
7.1.310.0040.01115.95
7.1.300.0060.00616.05
7.1.290.0040.00715.81
7.1.280.0080.00516.10
7.1.270.0070.00715.79
7.1.260.0070.00715.81
7.1.250.0060.00916.04
7.1.240.0040.00715.85
7.1.230.0030.01015.96
7.1.220.0080.00416.05
7.1.210.0110.00615.86
7.1.200.0050.00615.99
7.1.190.0030.00615.96
7.1.180.0110.00316.13
7.1.170.0030.01016.07
7.1.160.0090.00316.02
7.1.150.0060.00616.00
7.1.140.0060.00616.02
7.1.130.0090.00315.82
7.1.120.0060.00616.01
7.1.110.0030.00916.11
7.1.100.0030.00717.22
7.1.90.0040.00716.12
7.1.80.0030.00715.81
7.1.70.0060.00516.58
7.1.60.0090.00817.63
7.1.50.0090.00516.48
7.1.40.0060.00616.00
7.1.30.0030.00815.86
7.1.20.0100.00315.88
7.1.10.0030.01015.95
7.1.00.0000.04519.17
7.0.330.0120.00315.45
7.0.320.0030.01415.41
7.0.310.0070.00715.45
7.0.300.0030.01015.39
7.0.290.0040.00815.43
7.0.280.0060.00315.63
7.0.270.0000.00915.33
7.0.260.0090.00615.74
7.0.250.0090.00615.48
7.0.240.0000.01015.71
7.0.230.0070.00315.16
7.0.220.0120.00315.72
7.0.210.0000.01615.69
7.0.200.0060.00316.30
7.0.190.0080.00815.34
7.0.180.0030.00915.44
7.0.170.0070.00415.29
7.0.160.0000.01215.62
7.0.150.0060.00615.56
7.0.140.0100.03218.81
7.0.130.0100.00315.21
7.0.120.0030.01215.52
7.0.110.0110.00315.68
7.0.100.0110.03617.66
7.0.90.0060.04617.79
7.0.80.0130.03317.76
7.0.70.0100.04017.80
7.0.60.0090.02517.63
7.0.50.0150.04017.97
7.0.40.0100.04516.82
7.0.30.0060.04216.80
7.0.20.0030.02716.81
7.0.10.0050.02316.83
7.0.00.0050.04616.80
5.6.400.0040.01114.14
5.6.390.0100.00714.27
5.6.380.0040.01114.29
5.6.370.0030.01014.38
5.6.360.0000.01414.03
5.6.350.0030.01214.48
5.6.340.0030.00714.23
5.6.330.0000.00814.33
5.6.320.0150.00014.18
5.6.310.0040.00414.31
5.6.300.0030.01014.52
5.6.290.0000.01614.36
5.6.280.0020.04317.71
5.6.270.0030.01214.02
5.6.260.0070.00714.28
5.6.250.0080.03517.34
5.6.240.0040.04117.56
5.6.230.0140.03817.47
5.6.220.0110.03317.69
5.6.210.0190.03317.46
5.6.200.0080.02817.76
5.6.190.0020.03717.68
5.6.180.0080.04317.86
5.6.170.0070.04217.73
5.6.160.0100.02717.76
5.6.150.0020.04717.63
5.6.140.0150.03817.73
5.6.130.0040.04617.89
5.6.120.0040.04117.72
5.6.110.0040.02717.67
5.6.100.0020.03117.71
5.6.90.0070.04617.63
5.6.80.0050.04217.52
5.6.70.0060.04317.34
5.6.60.0080.04617.29
5.6.50.0090.04017.29
5.6.40.0040.04317.23
5.6.30.0030.04017.37
5.6.20.0000.04917.30
5.6.10.0020.04417.20
5.6.00.0080.04017.34
5.5.380.0080.04117.48
5.5.370.0110.02517.36
5.5.360.0100.04017.38
5.5.350.0070.04017.36
5.5.340.0100.03917.57
5.5.330.0080.04017.73
5.5.320.0150.02817.75
5.5.310.0120.04217.53
5.5.300.0050.02917.44
5.5.290.0060.04117.51
5.5.280.0060.03017.44
5.5.270.0070.02517.60
5.5.260.0070.04317.47
5.5.250.0070.04017.39
5.5.240.0050.04317.12
5.5.230.0070.04617.20
5.5.220.0050.04617.29
5.5.210.0050.03017.18
5.5.200.0090.03417.33
5.5.190.0120.03317.05
5.5.180.0080.02717.14
5.5.170.0060.00614.44
5.5.160.0080.04017.12
5.5.150.0080.04317.30
5.5.140.0030.03517.20
5.5.130.0070.03617.30
5.5.120.0010.04317.13
5.5.110.0070.04417.16
5.5.100.0030.03717.24
5.5.90.0050.02417.08
5.5.80.0030.03417.13
5.5.70.0020.04617.06
5.5.60.0070.03717.15
5.5.50.0050.02317.06
5.5.40.0080.04117.15
5.5.30.0050.02017.08
5.5.20.0050.04517.18
5.5.10.0050.04517.13
5.5.00.0110.03517.14
5.4.450.0140.03116.51
5.4.440.0070.04216.46
5.4.430.0110.03916.50
5.4.420.0050.04516.44
5.4.410.0050.03816.44
5.4.400.0140.03116.29
5.4.390.0060.03016.36
5.4.380.0060.03916.21
5.4.370.0060.02016.28
5.4.360.0050.04016.27
5.4.350.0050.03216.36
5.4.340.0070.03216.32
5.4.330.0070.00413.52
5.4.320.0000.04516.33
5.4.310.0050.04416.27
5.4.300.0070.02016.32
5.4.290.0020.02516.19
5.4.280.0050.03316.21
5.4.270.0030.02316.36
5.4.260.0050.02816.23
5.4.250.0050.04016.33
5.4.240.0040.02316.27
5.4.230.0050.03816.32
5.4.220.0050.04016.33
5.4.210.0000.04016.18
5.4.200.0080.02816.33
5.4.190.0020.03916.22
5.4.180.0060.02016.32
5.4.170.0070.03816.33
5.4.160.0050.02816.29
5.4.150.0020.02816.31
5.4.140.0050.03714.93
5.4.130.0080.04014.98
5.4.120.0080.03814.96
5.4.110.0080.03014.99
5.4.100.0030.02014.92
5.4.90.0050.02014.99
5.4.80.0030.02214.96
5.4.70.0020.02515.00
5.4.60.0050.02114.94
5.4.50.0090.01614.99
5.4.40.0050.02014.96
5.4.30.0050.01714.97
5.4.20.0020.01914.96
5.4.10.0030.01814.96
5.4.00.0050.01914.58
5.3.290.0050.03614.09
5.3.280.0050.03014.04
5.3.270.0020.04614.07
5.3.260.0050.03214.05
5.3.250.0070.03514.03
5.3.240.0080.03814.12
5.3.230.0040.02414.09
5.3.220.0030.03614.09
5.3.210.0070.03314.05
5.3.200.0040.02914.06
5.3.190.0050.02014.10
5.3.180.0020.02214.05
5.3.170.0050.02014.05
5.3.160.0000.02414.01
5.3.150.0020.02314.02
5.3.140.0030.02314.09
5.3.130.0020.01814.06
5.3.120.0000.02214.02
5.3.110.0000.02114.03
5.3.100.0040.01713.77
5.3.90.0030.01613.73
5.3.80.0010.01913.79
5.3.70.0040.01913.80
5.3.60.0020.01813.81
5.3.50.0040.01913.77
5.3.40.0030.01813.69
5.3.30.0020.01813.73
5.3.20.0050.01813.61
5.3.10.0030.01913.65
5.3.00.0000.01913.64
5.2.170.0030.02311.62
5.2.160.0170.02011.62
5.2.150.0070.02711.62
5.2.140.0070.02011.62
5.2.130.0070.02011.62
5.2.120.0000.02711.62
5.2.110.0000.03011.62
5.2.100.0000.02711.62
5.2.90.0070.02011.62
5.2.80.0000.03311.62
5.2.70.0100.02311.62
5.2.60.0000.02711.62
5.2.50.0070.02011.62
5.2.40.0000.02311.62
5.2.30.0030.02311.62
5.2.20.0000.02711.62
5.2.10.0030.02311.62
5.2.00.0130.02011.62
5.1.60.0030.01711.62
5.1.50.0030.01711.62
5.1.40.0030.02711.62
5.1.30.0000.03011.62
5.1.20.0000.02311.62
5.1.10.0070.01711.62
5.1.00.0000.02311.62
5.0.50.0030.01311.62
5.0.40.0000.01711.62
5.0.30.0000.02711.62
5.0.20.0030.01311.62
5.0.10.0000.01711.62
5.0.00.0000.02711.62
4.4.90.0000.01311.62
4.4.80.0000.01311.62
4.4.70.0030.01011.62
4.4.60.0000.01311.62
4.4.50.0030.01011.62
4.4.40.0000.02011.62
4.4.30.0000.01311.62
4.4.20.0030.01011.62
4.4.10.0030.01011.62
4.4.00.0070.01311.62
4.3.110.0000.01311.62
4.3.100.0000.01311.62
4.3.90.0030.01011.62
4.3.80.0000.02011.62
4.3.70.0000.01311.62
4.3.60.0000.01311.62
4.3.50.0000.01311.62
4.3.40.0030.01711.62
4.3.30.0030.01011.62
4.3.20.0000.01311.62
4.3.10.0000.01311.62
4.3.00.0000.01311.62

preferences:
41.27 ms | 400 KiB | 5 Q