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+~', array('self', '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.70.0110.01116.63
8.3.60.0120.00618.63
8.3.50.0120.00322.17
8.3.40.0110.00418.84
8.3.30.0160.00318.73
8.3.20.0040.00418.99
8.3.10.0000.00821.14
8.3.00.0050.00323.66
8.2.180.0090.01316.75
8.2.170.0140.00719.08
8.2.160.0080.00522.96
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0050.00221.00
8.2.110.0040.00420.58
8.2.100.0120.00018.03
8.2.90.0030.00519.21
8.2.80.0090.00017.97
8.2.70.0150.00517.50
8.2.60.0060.00318.16
8.2.50.0090.00018.07
8.2.40.0000.00818.34
8.2.30.0090.00019.35
8.2.20.0000.00819.80
8.2.10.0000.00817.78
8.2.00.0080.00017.91
8.1.280.0110.00425.92
8.1.270.0040.00423.99
8.1.260.0100.00326.35
8.1.250.0040.00428.09
8.1.240.0060.00322.54
8.1.230.0040.00820.95
8.1.220.0000.00818.77
8.1.210.0050.00318.77
8.1.200.0090.00017.35
8.1.190.0000.00717.53
8.1.180.0040.00418.10
8.1.170.0040.00418.74
8.1.160.0040.00418.79
8.1.150.0000.00818.67
8.1.140.0000.00717.36
8.1.130.0030.00317.52
8.1.120.0040.00417.56
8.1.110.0040.00417.51
8.1.100.0030.00517.38
8.1.90.0030.00517.46
8.1.80.0070.00017.35
8.1.70.0000.00717.46
8.1.60.0040.00417.66
8.1.50.0000.00817.56
8.1.40.0030.00617.54
8.1.30.0040.00417.64
8.1.20.0000.00817.74
8.1.10.0000.00717.65
8.1.00.0050.00217.50
8.0.300.0040.00420.04
8.0.290.0000.00817.16
8.0.280.0070.00018.48
8.0.270.0000.00717.20
8.0.260.0000.00616.95
8.0.250.0080.00017.11
8.0.240.0100.00017.16
8.0.230.0000.00717.11
8.0.220.0040.00417.04
8.0.210.0030.00317.06
8.0.200.0000.00617.10
8.0.190.0040.00416.99
8.0.180.0070.00316.98
8.0.170.0030.00317.05
8.0.160.0070.00017.12
8.0.150.0070.00316.91
8.0.140.0040.00417.04
8.0.130.0030.00313.45
8.0.120.0040.00416.93
8.0.110.0000.00717.09
8.0.100.0050.00216.93
8.0.90.0070.00017.05
8.0.80.0130.00716.98
8.0.70.0050.00217.14
8.0.60.0080.00016.96
8.0.50.0070.00016.91
8.0.30.0070.01217.28
8.0.20.0120.00617.40
8.0.10.0080.00017.09
8.0.00.0100.01216.78
7.4.330.0000.00516.72
7.4.320.0000.00716.59
7.4.300.0000.00716.77
7.4.290.0030.00316.58
7.4.280.0070.00016.76
7.4.270.0030.00316.75
7.4.260.0030.00313.48
7.4.250.0000.00816.60
7.4.240.0000.00716.75
7.4.230.0000.00716.45
7.4.220.0140.00416.76
7.4.210.0110.00616.69
7.4.200.0030.00316.81
7.4.190.0070.00016.45
7.4.160.0100.00616.82
7.4.150.0150.00417.40
7.4.140.0120.00817.86
7.4.130.0090.00816.62
7.4.120.0100.00716.71
7.4.110.0160.00016.52
7.4.100.0070.01016.48
7.4.90.0120.00616.61
7.4.80.0070.01319.39
7.4.70.0110.00716.69
7.4.60.0070.01016.79
7.4.50.0000.00616.38
7.4.40.0040.01422.77
7.4.30.0150.00616.64
7.4.00.0050.01215.20
7.3.330.0050.00013.44
7.3.320.0000.00613.49
7.3.310.0040.00416.57
7.3.300.0000.00716.46
7.3.290.0090.01016.46
7.3.280.0070.00816.47
7.3.270.0120.00617.40
7.3.260.0120.00718.24
7.3.250.0110.00816.60
7.3.240.0120.00916.52
7.3.230.0080.00816.46
7.3.210.0070.01016.54
7.3.200.0040.01419.39
7.3.190.0000.01816.79
7.3.180.0120.00316.67
7.3.170.0040.01316.61
7.3.160.0120.00916.45
7.3.120.0060.01014.86
7.3.110.0030.01315.17
7.3.100.0090.00914.95
7.3.90.0120.00314.94
7.3.80.0080.00815.18
7.3.70.0080.00315.03
7.3.60.0030.00614.88
7.3.50.0090.00015.04
7.3.40.0030.01015.10
7.3.30.0110.00414.96
7.3.20.0040.00717.07
7.3.10.0130.00416.80
7.3.00.0130.00616.51
7.2.330.0060.01116.74
7.2.320.0120.00616.59
7.2.310.0100.00716.66
7.2.300.0080.00816.64
7.2.290.0130.00316.63
7.2.250.0100.01015.13
7.2.240.0030.01315.20
7.2.230.0080.00415.19
7.2.220.0000.01415.29
7.2.210.0000.01415.20
7.2.200.0030.01415.21
7.2.190.0030.01215.20
7.2.180.0000.01015.34
7.2.170.0070.00715.21
7.2.130.0140.00916.62
7.2.120.0230.01216.85
7.2.110.0150.00516.34
7.2.100.0080.01216.83
7.2.90.0150.00916.64
7.2.80.0160.00316.80
7.2.70.0110.01116.39
7.2.60.0090.00716.93
7.2.50.0060.01016.91
7.2.40.0160.00616.35
7.2.30.0090.01216.61
7.2.20.0040.01516.77
7.2.10.0140.00716.63
7.2.00.0120.00318.13
7.1.330.0070.00715.91
7.1.320.0070.00315.85
7.1.310.0060.00916.09
7.1.300.0040.01415.96
7.1.290.0000.01015.97
7.1.280.0030.01015.75
7.1.270.0040.00415.89
7.1.260.0060.00615.98
7.1.250.0200.01016.02
7.1.200.0040.00915.95
7.1.70.0090.00317.42
7.1.60.0050.00917.39
7.1.50.0080.00816.82
7.1.40.0060.00616.71
7.1.30.0060.00616.84
7.1.20.0080.00416.82
7.1.10.0040.00716.85
7.1.00.0000.00917.00
7.0.200.0080.00416.82
7.0.190.0000.01316.94
7.0.180.0020.00516.32
7.0.170.0050.00516.64
7.0.160.0070.00316.25
7.0.150.0030.00616.30
7.0.140.0000.00816.20
7.0.130.0040.00416.64
7.0.120.0000.00816.67
7.0.110.0040.00416.45
7.0.100.0040.00416.54
7.0.90.0090.00016.38
7.0.80.0070.00316.54
7.0.70.0060.00316.31
7.0.60.0000.00916.40
7.0.50.0090.00916.72
7.0.40.0090.00915.51
7.0.30.0090.00015.51
7.0.20.0090.00315.51
7.0.10.0080.00415.51
7.0.00.0040.00415.51
5.6.300.0070.03720.73
5.6.290.0000.04620.86
5.6.280.0070.04020.83
5.6.270.0160.03520.94
5.6.260.0100.03920.95
5.6.250.0230.03620.84
5.6.240.0220.03520.90
5.6.230.0060.04220.92
5.6.220.0060.03820.92
5.6.210.0060.03820.93
5.6.200.0030.04220.98
5.6.190.0030.06320.85
5.6.180.0030.05120.71
5.6.170.0100.05220.76
5.6.160.0030.04220.71
5.6.150.0030.04420.74
5.6.140.0070.06320.77
5.6.130.0030.08720.99
5.6.120.0060.04520.73
5.6.110.0030.04220.86
5.6.100.0000.05020.78
5.6.90.0060.04120.87
5.6.80.0060.03520.10
5.6.70.0000.04320.11
5.6.60.0000.04220.16
5.6.50.0100.03320.38
5.6.40.0030.03720.22
5.6.30.0040.03920.27
5.6.20.0060.03820.29
5.6.10.0030.05620.12
5.6.00.0070.03420.31
5.5.380.0000.08617.43
5.5.370.0030.04217.61
5.5.360.0100.03617.63
5.5.350.0000.04317.43
5.5.340.0000.04218.00
5.5.330.0030.03917.70
5.5.320.0070.03817.68
5.5.310.0000.04318.04
5.5.300.0000.08918.17
5.5.290.0100.08818.00
5.5.280.0030.06217.98
5.5.270.0030.06518.13
5.5.260.0070.04317.79
5.5.250.0000.04717.60
5.5.240.0000.04117.36
5.5.230.0030.03717.07
5.5.220.0000.04117.27
5.5.210.0030.04017.02
5.5.200.0000.06217.31
5.5.190.0070.04017.40
5.5.180.0000.04417.05
5.5.160.0070.03917.24
5.5.150.0060.04117.33
5.5.140.0040.04217.48
5.5.130.0000.05817.30
5.5.120.0030.04117.30
5.5.110.0100.03217.30
5.5.100.0100.04517.25
5.5.90.0040.03617.02
5.5.80.0070.03817.39
5.5.70.0000.04117.32
5.5.60.0070.03617.38
5.5.50.0000.04817.23
5.5.40.0070.03416.89
5.5.30.0000.08617.21
5.5.20.0000.04617.03
5.5.10.0000.04416.89
5.5.00.0000.04417.00
5.4.450.0030.04519.39
5.4.440.0040.04219.31
5.4.430.0040.04319.36
5.4.420.0030.04519.33
5.4.410.0000.04519.16
5.4.400.0000.04218.97
5.4.390.0000.04519.13
5.4.380.0000.04018.92
5.4.370.0030.03618.88
5.4.360.0030.03719.02
5.4.350.0100.03319.00
5.4.340.0070.03318.88
5.4.320.0100.05218.96
5.4.310.0000.04419.06
5.4.300.0030.07719.04
5.4.290.0000.04319.00
5.4.280.0070.03619.09
5.4.270.0000.04318.86
5.4.260.0030.04119.02
5.4.250.0040.03519.00
5.4.240.0030.03719.04
5.4.230.0130.02919.13
5.4.220.0000.04619.00
5.4.210.0060.04519.04
5.4.200.0000.04119.10
5.4.190.0070.04619.02
5.4.180.0030.04018.96
5.4.170.0090.03119.09
5.4.160.0000.04218.90
5.4.150.0060.03918.99
5.4.140.0070.04116.79
5.4.130.0030.06116.74
5.4.120.0070.03516.78
5.4.110.0000.04716.52
5.4.100.0070.05316.78
5.4.90.0030.03716.76
5.4.80.0070.04916.49
5.4.70.0030.03516.63
5.4.60.0000.03816.54
5.4.50.0030.03516.57
5.4.40.0030.03416.75
5.4.30.0000.04116.46
5.4.20.0090.02916.69
5.4.10.0030.04216.71
5.4.00.0060.03516.14
5.3.290.0030.04915.51
5.3.280.0000.04815.51
5.3.270.0030.03815.51
5.3.260.0000.04515.51
5.3.250.0030.03815.51
5.3.240.0070.05315.51
5.3.230.0030.04015.51
5.3.220.0030.06015.51
5.3.210.0030.04715.51
5.3.200.0030.04815.51
5.3.190.0060.04215.51
5.3.180.0040.03915.51
5.3.170.0030.03715.51
5.3.160.0100.03015.51
5.3.150.0040.03915.51
5.3.140.0030.03715.51
5.3.130.0070.03815.51
5.3.120.0000.04515.51
5.3.110.0030.04315.51
5.3.100.0030.03815.51
5.3.90.0040.03515.51
5.3.80.0070.03415.51
5.3.70.0000.04815.51
5.3.60.0100.05815.51
5.3.50.0030.04215.51
5.3.40.0030.07915.51
5.3.30.0060.03515.51
5.3.20.0080.03115.51
5.3.10.0100.02915.51
5.3.00.0130.03015.51
5.2.170.0070.05915.51
5.2.160.0000.03715.51
5.2.150.0030.02915.51
5.2.140.0000.03215.51
5.2.130.0000.03715.51
5.2.120.0030.03015.51
5.2.110.0030.04115.51
5.2.100.0090.03615.51
5.2.90.0040.03015.51
5.2.80.0030.03215.51
5.2.70.0040.03215.51
5.2.60.0000.04515.51
5.2.50.0060.05115.51
5.2.40.0030.03015.51
5.2.30.0090.03715.51
5.2.20.0030.03015.51
5.2.10.0030.03015.51
5.2.00.0030.02815.51
5.1.60.0030.02415.51
5.1.50.0000.02715.51
5.1.40.0000.02815.51
5.1.30.0060.02215.51
5.1.20.0030.02615.51
5.1.10.0000.03015.51
5.1.00.0030.02815.51
5.0.50.0030.02015.51
5.0.40.0040.01915.51
5.0.30.0070.03815.51
5.0.20.0030.02015.51
5.0.10.0030.02015.51
5.0.00.0000.03515.51
4.4.90.0000.01715.51
4.4.80.0030.01415.51
4.4.70.0030.01615.51
4.4.60.0000.01915.51
4.4.50.0000.01915.51
4.4.40.0000.02815.51
4.4.30.0030.01415.51
4.4.20.0030.01515.51
4.4.10.0040.01415.51
4.4.00.0000.02615.51
4.3.110.0000.01615.51
4.3.100.0030.01415.51
4.3.90.0000.01815.51
4.3.80.0030.03415.51
4.3.70.0080.00815.51
4.3.60.0030.01315.51
4.3.50.0060.01215.51
4.3.40.0000.02715.51
4.3.30.0000.01715.51
4.3.20.0000.01915.51
4.3.10.0030.01415.51
4.3.00.0030.01515.51

preferences:
35.86 ms | 401 KiB | 5 Q