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('static', '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.60.0070.00718.80
8.3.50.0050.01422.11
8.3.40.0060.00918.95
8.3.30.0140.00318.84
8.3.20.0070.00719.03
8.3.10.0090.00920.96
8.3.00.0080.00023.65
8.2.180.0100.01017.13
8.2.170.0120.00322.96
8.2.160.0070.01021.02
8.2.150.0080.00024.18
8.2.140.0080.00824.66
8.2.130.0030.00626.16
8.2.120.0050.00319.79
8.2.110.0060.00322.11
8.2.100.0070.00418.03
8.2.90.0040.00419.21
8.2.80.0040.00417.97
8.2.70.0040.00417.61
8.2.60.0030.00617.80
8.2.50.0000.00818.07
8.2.40.0040.00418.34
8.2.30.0000.00821.30
8.2.20.0000.00717.73
8.2.10.0040.00417.70
8.2.00.0000.00917.88
8.1.280.0030.01225.92
8.1.270.0070.01023.99
8.1.260.0090.00926.35
8.1.250.0070.00028.09
8.1.240.0030.00622.50
8.1.230.0070.00421.03
8.1.220.0030.00518.77
8.1.210.0000.00818.84
8.1.200.0040.00417.36
8.1.190.0030.00617.50
8.1.180.0000.00818.10
8.1.170.0040.00418.45
8.1.160.0030.00518.77
8.1.150.0000.00718.66
8.1.140.0000.00917.38
8.1.130.0030.00517.70
8.1.120.0050.00517.45
8.1.110.0000.00817.34
8.1.100.0040.00417.48
8.1.90.0000.00717.47
8.1.80.0000.00817.49
8.1.70.0000.00817.47
8.1.60.0030.00617.61
8.1.50.0030.00617.56
8.1.40.0030.00717.57
8.1.30.0000.00817.72
8.1.20.0000.00817.69
8.1.10.0030.00617.55
8.1.00.0000.00817.55
8.0.300.0000.00819.88
8.0.290.0040.00417.04
8.0.280.0040.00418.41
8.0.270.0030.00317.25
8.0.260.0000.00716.96
8.0.250.0000.00717.00
8.0.240.0040.00417.04
8.0.230.0030.00517.03
8.0.220.0000.00716.99
8.0.210.0000.00716.93
8.0.200.0000.00717.01
8.0.190.0040.00417.02
8.0.180.0070.00016.90
8.0.170.0050.00216.82
8.0.160.0040.00316.98
8.0.150.0000.00716.75
8.0.140.0080.00316.65
8.0.130.0030.00313.29
8.0.120.0000.00816.75
8.0.110.0060.00316.86
8.0.100.0000.00816.83
8.0.90.0000.00716.88
8.0.80.0070.01016.82
8.0.70.0030.00516.73
8.0.60.0000.00816.98
8.0.50.0000.00816.91
8.0.30.0050.01317.13
8.0.20.0110.00817.42
8.0.10.0040.00416.84
8.0.00.0100.01016.66
7.4.330.0050.00014.80
7.4.320.0000.00716.60
7.4.300.0060.00016.74
7.4.290.0030.00316.74
7.4.280.0040.00416.57
7.4.270.0030.00316.64
7.4.260.0030.00313.41
7.4.250.0000.00716.63
7.4.240.0070.00016.66
7.4.230.0050.00216.73
7.4.220.0090.00916.62
7.4.210.0060.00816.75
7.4.200.0030.00316.54
7.4.190.0050.00216.55
7.4.160.0080.00816.71
7.4.150.0090.01517.40
7.4.140.0090.01217.86
7.4.130.0100.01116.55
7.4.120.0070.01216.48
7.4.110.0060.01216.51
7.4.100.0140.00816.77
7.4.90.0160.00616.44
7.4.80.0100.00719.39
7.4.70.0100.01016.64
7.4.60.0080.00816.63
7.4.50.0040.00416.71
7.4.40.0030.01022.52
7.4.30.0120.00616.59
7.4.00.0080.00615.23
7.3.330.0000.00513.43
7.3.320.0080.00413.29
7.3.310.0030.00416.40
7.3.300.0040.00316.31
7.3.290.0060.00916.46
7.3.280.0080.00916.44
7.3.270.0040.01517.40
7.3.260.0080.01218.24
7.3.250.0060.01116.43
7.3.240.0150.00316.57
7.3.230.0120.00616.45
7.3.210.0100.00716.64
7.3.200.0130.01019.39
7.3.190.0130.01016.79
7.3.180.0040.01616.47
7.3.170.0070.01016.50
7.3.160.0060.01016.64
7.3.120.0070.00715.09
7.3.00.0090.00616.71
7.2.330.0070.01016.76
7.2.320.0120.01216.77
7.2.310.0060.01516.56
7.2.300.0060.01016.85
7.2.290.0130.00316.67
7.2.130.0090.00316.78
7.2.120.0040.01116.98
7.2.110.0030.00716.82
7.2.100.0030.00917.14
7.2.90.0100.00316.86
7.2.80.0000.00917.00
7.2.70.0000.01517.18
7.2.60.0040.01117.09
7.2.50.0060.00616.69
7.2.40.0040.00417.29
7.2.30.0030.01016.86
7.2.20.0040.00717.07
7.2.10.0030.01016.83
7.2.00.0070.00618.39
7.1.250.0000.01315.82
7.1.240.0000.01216.00
7.1.230.0000.01015.66
7.1.220.0060.00615.89
7.1.210.0080.00015.92
7.1.200.0030.00915.77
7.1.190.0030.00615.82
7.1.180.0030.00916.18
7.1.170.0000.00716.05
7.1.160.0070.00716.03
7.1.150.0060.00915.98
7.1.140.0040.00715.80
7.1.130.0060.00615.85
7.1.120.0040.00816.06
7.1.110.0040.01215.86
7.1.100.0020.00817.19
7.1.90.0110.00016.09
7.1.80.0070.00316.11
7.1.70.0060.00416.70
7.1.60.0060.00917.72
7.1.50.0150.01025.46
7.1.40.0110.00415.78
7.1.30.0030.00915.71
7.1.20.0090.00316.05
7.1.10.0070.00715.95
7.1.00.0100.02019.27
7.0.330.0000.01515.64
7.0.320.0060.00615.63
7.0.310.0040.00915.70
7.0.300.0070.00715.18
7.0.290.0000.01015.57
7.0.280.0050.00515.53
7.0.270.0030.00715.35
7.0.260.0030.00715.51
7.0.250.0040.00715.53
7.0.240.0030.01015.73
7.0.230.0070.00715.23
7.0.220.0000.00915.59
7.0.210.0060.00315.59
7.0.200.0060.00415.30
7.0.190.0070.00715.52
7.0.180.0040.00815.63
7.0.170.0060.00315.66
7.0.160.0060.00315.53
7.0.150.0030.01015.69
7.0.140.0070.03818.88
7.0.130.0000.00915.66
7.0.120.0110.00415.52
7.0.110.0090.00315.38
7.0.100.0070.00715.56
7.0.90.0030.01415.62
7.0.80.0110.00315.45
7.0.70.2100.03017.72
7.0.60.2120.02817.70
7.0.50.2110.02317.96
7.0.40.1930.01816.82
7.0.30.1920.01816.96
7.0.20.1860.02316.81
7.0.10.1820.02916.78
7.0.00.1620.02916.82
5.6.380.0060.00614.09
5.6.370.0020.01014.21
5.6.360.0040.00414.14
5.6.350.0030.00614.68
5.6.340.0070.00414.67
5.6.330.0040.00714.36
5.6.320.0100.00314.54
5.6.310.0060.00614.67
5.6.300.0060.00614.49
5.6.290.0080.00614.09
5.6.280.0050.03817.81
5.6.270.0000.00914.25
5.6.260.0070.00714.79
5.6.250.0000.01014.40
5.6.240.0060.00614.40
5.6.230.0000.01314.72
5.6.220.0060.00614.31
5.6.210.1860.02617.52
5.6.200.1850.02517.72
5.6.190.1890.02117.76
5.6.180.1440.02617.68
5.6.170.1730.02817.69
5.6.160.1740.02917.60
5.6.150.1760.02317.52
5.6.140.1600.02517.59
5.6.130.1320.02217.66
5.6.120.1420.02317.73
5.6.110.1460.02517.65
5.6.100.1210.01817.73
5.6.90.1210.01617.64
5.6.80.1590.02017.27
5.6.70.0050.04517.25
5.6.60.2000.02217.28
5.6.50.1720.02217.37
5.6.40.1820.02317.50
5.6.30.1810.02417.47
5.6.20.1830.02517.31
5.6.10.1620.02717.31
5.6.00.1920.02017.45
5.5.380.0070.00011.18
5.5.370.0000.00911.18
5.5.360.0070.00311.18
5.5.350.1730.02015.79
5.5.340.1780.02116.04
5.5.330.1750.02616.00
5.5.320.1530.02716.02
5.5.310.1840.02716.02
5.5.300.1720.02216.21
5.5.290.1330.02816.08
5.5.280.1150.02616.00
5.5.270.1220.02216.02
5.5.260.1040.01915.99
5.5.250.1510.02315.96
5.5.240.0890.01815.79
5.5.230.0040.03415.72
5.5.220.1520.02515.66
5.5.210.1900.02015.69
5.5.200.1870.02515.67
5.5.190.1770.02315.68
5.5.180.1770.02315.74
5.5.170.0030.00711.18
5.5.160.1770.02815.70
5.5.150.1820.02715.71
5.5.140.1850.02015.72
5.5.130.1780.02015.64
5.5.120.1870.02015.69
5.5.110.1780.01815.68
5.5.100.1770.02515.66
5.5.90.1770.02515.69
5.5.80.1830.02315.64
5.5.70.1870.02015.62
5.5.60.1810.02015.56
5.5.50.1820.02315.67
5.5.40.1850.02215.56
5.5.30.1860.02115.66
5.5.20.1870.02115.62
5.5.10.1930.02615.58
5.5.00.1780.02115.63
5.4.450.1320.02315.27
5.4.440.1050.01815.34
5.4.430.1000.01815.28
5.4.420.1190.01715.27
5.4.410.1370.02415.22
5.4.400.0050.03715.07
5.4.390.0430.03715.11
5.4.380.1750.02515.19
5.4.370.1700.02115.19
5.4.360.1350.02215.05
5.4.350.1800.02315.01
5.4.340.1800.02315.10
5.4.330.0000.00711.22
5.4.320.1810.02715.15
5.4.310.1750.02115.14
5.4.300.1830.02015.17
5.4.290.1580.02115.03
5.4.280.1830.02115.11
5.4.270.1760.02315.10
5.4.260.1820.02415.15
5.4.250.1760.02215.13
5.4.240.1790.02015.20
5.4.230.1800.02315.03
5.4.220.1880.01815.13
5.4.210.1810.02315.19
5.4.200.1880.02215.15
5.4.190.1700.02415.14
5.4.180.1670.02215.13
5.4.170.1860.02015.14
5.4.160.1700.01815.14
5.4.150.1730.02415.09
5.4.140.1520.02213.91
5.4.130.1830.02513.80
5.4.120.1700.01813.73
5.4.110.1800.01813.86
5.4.100.1800.02213.86
5.4.90.1800.02013.78
5.4.80.1780.02313.87
5.4.70.1820.02013.84
5.4.60.1600.02213.79
5.4.50.1730.02213.77
5.4.40.1660.02113.83
5.4.30.1860.01713.79
5.4.20.1800.02113.71
5.4.10.1620.02213.82
5.4.00.1740.01913.51
5.3.290.1800.02412.90
5.3.280.1800.02112.91
5.3.270.1820.02112.91
5.3.260.1840.02412.96
5.3.250.1610.02112.94
5.3.240.1680.02312.94
5.3.230.1850.01912.88
5.3.220.1760.02312.93
5.3.210.1800.02212.91
5.3.200.1770.02612.88
5.3.190.1790.01712.84
5.3.180.1880.02312.92
5.3.170.1820.02312.90
5.3.160.1830.02012.92
5.3.150.1490.01812.88
5.3.140.1730.02512.93
5.3.130.1810.02012.90
5.3.120.1820.02012.87
5.3.110.1620.02112.84
5.3.100.1670.02612.64
5.3.90.1800.01512.63
5.3.80.1790.02212.63
5.3.70.1680.01712.61
5.3.60.1750.02312.64
5.3.50.1700.02212.51
5.3.40.1760.01812.52
5.3.30.1750.02012.60
5.3.20.1780.01712.51
5.3.10.1630.02012.46
5.3.00.1850.01812.42
5.2.170.1500.01811.18
5.2.160.1330.01911.13
5.2.150.1480.02011.23
5.2.140.1530.01811.09
5.2.130.1570.01311.15
5.2.120.1480.01911.11
5.2.110.1570.01511.11
5.2.100.1500.02011.13
5.2.90.1450.01911.09
5.2.80.1520.01611.15
5.2.70.1470.01811.17
5.2.60.1590.01511.12
5.2.50.1590.01311.14
5.2.40.1150.02111.10
5.2.30.1190.01711.12
5.2.20.1170.01711.02
5.2.10.1150.02210.99
5.2.00.1220.01410.94
5.1.60.0820.01410.58
5.1.50.1370.01410.61
5.1.40.1280.01010.62
5.1.30.1080.01310.72
5.1.20.1130.00810.80
5.1.10.1070.01210.66
5.1.00.1130.01610.65
5.0.50.0230.0139.86
5.0.40.0280.0109.84
5.0.30.0300.0139.74
5.0.20.0270.0109.73
5.0.10.0270.0119.67
5.0.00.0250.0179.59
4.4.90.0490.0128.47
4.4.80.0420.0178.50
4.4.70.0460.0108.50
4.4.60.0450.0108.49
4.4.50.0050.0168.48
4.4.40.0500.0158.50
4.4.30.0680.0088.49
4.4.20.0530.0088.49
4.4.10.0300.0088.52
4.4.00.0250.0138.52
4.3.110.0300.0068.47
4.3.100.0270.0078.47
4.3.90.0270.0078.47
4.3.80.0270.0148.47
4.3.70.0200.0078.47
4.3.60.0270.0108.47
4.3.50.0280.0108.47
4.3.40.0250.0138.47
4.3.30.0020.0088.47
4.3.20.0030.0078.47
4.3.10.0010.0088.47
4.3.00.0020.0088.47

preferences:
52.73 ms | 401 KiB | 5 Q