3v4l.org

run code in 300+ PHP versions simultaneously
<?php function dumpParameter($r){ return 'PAR'.$r.'AM'; } function t($value){ if (preg_match('/^%([^%]+)%$/', $value, $match)) { // we do this to deal with non string values (Boolean, integer, ...) // the preg_replace_callback converts them to strings return dumpParameter(strtolower($match[1])); } else { $replaceParameters = function ($match){ return "'.".dumpParameter(strtolower($match[2])).".'"; }; $code = str_replace('%%', '%', preg_replace_callback('/(?<!%)(%)([^%]+)\1/', $replaceParameters, var_export($value, true))); return $code; } } echo t('%d%dre');

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.0170.00318.92
8.3.30.0160.00318.96
8.3.20.0000.00818.85
8.3.10.0040.00420.69
8.3.00.0050.00219.38
8.2.170.0070.00722.96
8.2.160.0030.01320.79
8.2.150.0000.00924.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00421.10
8.2.110.0100.00021.24
8.2.100.0080.00317.97
8.2.90.0030.00721.36
8.2.80.0040.00419.40
8.2.70.0000.00917.75
8.2.60.0030.00717.93
8.2.50.0030.00618.07
8.2.40.0040.00418.22
8.2.30.0000.00818.08
8.2.20.0000.00919.61
8.2.10.0050.00317.96
8.2.00.0040.00417.93
8.1.270.0030.00623.99
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0060.00322.48
8.1.230.0080.00420.90
8.1.220.0050.00317.78
8.1.210.0000.01019.04
8.1.200.0090.00017.60
8.1.190.0090.00017.41
8.1.180.0000.00818.10
8.1.170.0030.00518.71
8.1.160.0040.00418.84
8.1.150.0040.00418.82
8.1.140.0040.00417.52
8.1.130.0000.00717.82
8.1.120.0030.00717.60
8.1.110.0040.00417.61
8.1.100.0030.00517.69
8.1.90.0040.00417.66
8.1.80.0000.00717.66
8.1.70.0000.00717.59
8.1.60.0030.00617.73
8.1.50.0030.00617.56
8.1.40.0000.00817.63
8.1.30.0030.00517.83
8.1.20.0040.00417.74
8.1.10.0040.00417.82
8.1.00.0000.00817.73
8.0.300.0040.00419.98
8.0.290.0000.00816.88
8.0.280.0030.00318.51
8.0.270.0070.00017.20
8.0.260.0030.00516.85
8.0.250.0000.00817.06
8.0.240.0040.00417.01
8.0.230.0030.00317.08
8.0.220.0070.00017.06
8.0.210.0030.00316.98
8.0.200.0000.00617.00
8.0.190.0030.00317.17
8.0.180.0000.00716.97
8.0.170.0030.00716.86
8.0.160.0070.00017.14
8.0.150.0040.00417.00
8.0.140.0000.01117.06
8.0.130.0000.00513.48
8.0.120.0040.00417.01
8.0.110.0070.00017.03
8.0.100.0040.00417.04
8.0.90.0040.00417.05
8.0.80.0060.01017.03
8.0.70.0000.00716.97
8.0.60.0000.00717.11
8.0.50.0040.00417.11
8.0.30.0110.01117.11
8.0.20.0150.01217.39
8.0.10.0070.00017.13
8.0.00.0100.01216.93
7.4.330.0000.00613.14
7.4.320.0030.00316.68
7.4.300.0070.00016.77
7.4.290.0000.00716.83
7.4.280.0030.00616.77
7.4.270.0030.00316.68
7.4.260.0030.00313.48
7.4.250.0090.00016.82
7.4.240.0070.00016.63
7.4.230.0030.00316.55
7.4.220.0170.00916.90
7.4.210.0110.01116.84
7.4.200.0000.00716.68
7.4.190.0000.00716.63
7.4.160.0090.00616.87
7.4.150.0110.00716.98
7.4.140.0030.01416.84
7.4.130.0030.01316.52
7.4.120.0110.00616.64
7.4.110.0130.00716.64
7.4.100.0030.01316.77
7.4.90.0070.01016.64
7.4.80.0190.00019.39
7.4.70.0150.00716.64
7.4.60.0060.01016.71
7.4.50.0040.00416.57
7.4.40.0090.00316.75
7.4.30.0050.01016.68
7.4.00.0040.01115.36
7.3.330.0030.00313.45
7.3.320.0060.00013.30
7.3.310.0040.00416.32
7.3.300.0070.00016.38
7.3.290.0050.01016.47
7.3.280.0080.01016.47
7.3.270.0120.00616.58
7.3.260.0180.00016.53
7.3.250.0130.00716.60
7.3.240.0000.02116.55
7.3.230.0120.00416.77
7.3.210.0150.00316.55
7.3.200.0130.00316.64
7.3.190.0070.01116.43
7.3.180.0040.01116.39
7.3.170.0070.01416.63
7.3.160.0110.00816.64
7.3.120.0060.00914.98
7.3.10.0210.00516.93
7.3.00.0090.01216.83
7.2.330.0090.00916.82
7.2.320.0000.01716.87
7.2.310.0030.01416.95
7.2.300.0220.00316.91
7.2.290.0030.01316.87
7.2.130.0110.01117.12
7.2.120.0170.00816.84
7.2.110.0060.01017.20
7.2.100.0060.01617.04
7.2.90.0130.01617.25
7.2.80.0050.01516.79
7.2.70.0150.01517.18
7.2.60.0140.00617.23
7.2.50.0000.02117.29
7.2.40.0070.01117.07
7.2.30.0030.01317.14
7.2.20.0140.00317.30
7.2.10.0030.00716.75
7.2.00.0070.01116.96
7.1.250.0160.00716.20
7.1.240.0180.00915.91
7.1.230.0110.01116.16
7.1.220.0120.00915.86
7.1.210.0190.00316.20
7.1.200.0040.01415.98
7.1.190.0030.01616.08
7.1.180.0220.00616.05
7.1.170.0070.00715.94
7.1.160.0130.01015.84
7.1.150.0090.00615.71
7.1.140.0080.00815.87
7.1.130.0000.01416.12
7.1.120.0100.00715.95
7.1.110.0060.00615.95
7.1.100.0050.00617.25
7.1.90.0000.01115.76
7.1.80.0100.00716.02
7.1.70.0080.00316.48
7.1.60.0080.01017.75
7.1.50.0070.00816.53
7.1.40.0040.00415.98
7.1.30.0090.00616.00
7.1.20.0090.00315.82
7.1.10.0110.00415.96
7.1.00.0020.03619.35
7.0.330.0150.00415.70
7.0.320.0100.00715.44
7.0.310.0130.01315.52
7.0.300.0100.01015.32
7.0.290.0040.00815.24
7.0.280.0030.01015.68
7.0.270.0030.00715.74
7.0.260.0100.00315.73
7.0.250.0080.00415.65
7.0.240.0090.00615.59
7.0.230.0040.00815.45
7.0.220.0000.00915.51
7.0.210.0000.01315.59
7.0.200.0000.01016.21
7.0.190.0080.00815.64
7.0.180.0140.00315.62
7.0.170.0100.00615.66
7.0.160.0060.00615.44
7.0.150.0030.00715.53
7.0.140.0050.03818.79
7.0.130.0060.00615.48
7.0.120.0030.03218.86
7.0.110.0030.01315.75
7.0.100.0100.00615.55
7.0.90.0030.00615.68
7.0.80.0030.00715.68
7.0.70.0000.01215.75
7.0.60.0120.03517.74
7.0.50.0090.02816.67
7.0.40.0030.02817.01
7.0.30.0120.03416.90
7.0.20.0130.04716.82
7.0.10.0080.04616.90
7.0.00.0070.02316.86
5.6.380.0080.00814.49
5.6.370.0040.01814.44
5.6.360.0070.01414.77
5.6.350.0000.01514.65
5.6.340.0000.01614.37
5.6.330.0070.00714.49
5.6.320.0070.00314.62
5.6.310.0040.01014.26
5.6.300.0060.00914.28
5.6.290.0000.01414.20
5.6.280.0060.03817.82
5.6.270.0110.00414.09
5.6.260.0000.00814.46
5.6.250.0050.00314.12
5.6.240.0000.01214.51
5.6.230.0070.00314.50
5.6.220.0030.01014.36
5.6.210.0070.04517.40
5.6.200.0030.03616.40
5.6.190.0080.03017.52
5.6.180.0190.04217.60
5.6.170.0170.04217.49
5.6.160.0080.04517.37
5.6.150.0010.02916.26
5.6.140.0180.02316.32
5.6.130.0050.02516.25
5.6.120.0050.04717.69
5.6.110.0220.03217.69
5.6.100.0030.04717.80
5.6.90.0100.04317.79
5.6.80.0050.03817.42
5.6.70.0090.00614.52
5.6.60.0110.00414.40
5.6.50.0040.01114.37
5.6.40.0060.01014.03
5.6.30.0130.00014.43
5.6.20.0030.01014.53
5.6.10.0070.00714.53
5.6.00.0070.01014.48
5.5.380.0000.00611.45
5.5.370.0000.00511.46
5.5.360.0030.00611.52
5.5.350.0120.01915.73
5.5.340.0060.04114.71
5.5.330.0050.04515.80
5.5.320.0260.03515.70
5.5.310.0070.02415.60
5.5.300.0000.03514.56
5.5.290.0020.02514.53
5.5.280.0080.02816.05
5.5.270.0030.02616.08
5.5.260.0030.03016.06
5.5.250.0040.04215.84
5.5.240.0020.03015.86
5.5.230.0040.00811.19
5.5.220.0030.00311.50
5.5.210.0000.00611.05
5.5.200.0060.00611.34
5.5.190.0070.00011.21
5.5.180.0090.00311.13
5.5.170.0040.00711.21
5.5.160.0030.00611.11
5.5.150.0030.00311.18
5.5.140.0080.00311.15
5.5.130.0040.00811.29
5.5.120.0030.00411.36
5.5.110.0030.00310.68
5.5.100.0060.00611.06
5.5.90.0000.01311.07
5.5.80.0070.00311.27
5.5.70.0060.00311.13
5.5.60.0040.00711.27
5.5.50.0040.00811.39
5.5.40.0060.00010.96
5.5.30.0050.00211.27
5.5.20.0060.00611.06
5.5.10.0080.00511.44
5.5.00.0000.01011.16
5.4.450.0150.03415.22
5.4.440.0180.03015.19
5.4.430.0130.02315.32
5.4.420.0120.04315.37
5.4.410.0100.03115.25
5.4.400.0130.03615.20
5.4.390.0120.02614.93
5.4.380.0150.03915.05
5.4.370.0150.02715.15
5.4.360.0140.04114.95
5.4.350.0150.02715.11
5.4.340.0120.04015.03
5.4.330.0060.00311.25
5.4.320.0140.02815.05
5.4.310.0230.02815.11
5.4.300.0130.03014.98
5.4.290.0140.03114.98
5.4.280.0100.02615.04
5.4.270.0170.03815.04
5.4.260.0130.02215.23
5.4.250.0180.03215.01
5.4.240.0180.02015.05
5.4.230.0210.03315.01
5.4.220.0130.04014.97
5.4.210.0150.03515.26
5.4.200.0150.02515.11
5.4.190.0160.03815.02
5.4.180.0200.03315.03
5.4.170.0130.04315.13
5.4.160.0150.03615.12
5.4.150.0130.02215.04
5.4.140.0100.03013.99
5.4.130.0130.04013.78
5.4.120.0170.02213.63
5.4.110.0130.02513.93
5.4.100.0180.02513.85
5.4.90.0160.03113.78
5.4.80.0180.03813.71
5.4.70.0200.03013.72
5.4.60.0170.02713.96
5.4.50.0160.03213.90
5.4.40.0170.02513.84
5.4.30.0150.03613.75
5.4.20.0180.02613.88
5.4.10.0080.02713.75
5.4.00.0160.01813.42
5.3.290.0050.03912.69
5.3.280.0200.03112.61
5.3.270.0100.02712.70
5.3.260.0180.03812.61
5.3.250.0120.03812.52
5.3.240.0120.03612.43
5.3.230.0110.04312.51
5.3.220.0100.02912.57
5.3.210.0080.02812.63
5.3.200.0100.02512.62
5.3.190.0180.03812.61
5.3.180.0170.02812.64
5.3.170.0100.04312.59
5.3.160.0130.03112.61
5.3.150.0150.03812.65
5.3.140.0170.04012.62
5.3.130.0130.04212.63
5.3.120.0150.03912.62
5.3.110.0120.02412.40
5.3.100.0120.02512.36
5.3.90.0150.03312.34
5.3.80.0130.03512.30
5.3.70.0140.03712.27
5.3.60.0170.03512.15
5.3.50.0120.04212.23
5.3.40.0130.03612.28
5.3.30.0190.03212.25
5.3.20.0130.02412.21
5.3.10.0230.02312.07
5.3.00.0170.03511.99
5.2.170.0110.01911.01
5.2.160.0080.03311.01
5.2.150.0150.01611.01
5.2.140.0100.03111.01
5.2.130.0100.02011.01
5.2.120.0180.02811.01
5.2.110.0070.03611.01
5.2.100.0120.03111.01
5.2.90.0100.03111.01
5.2.80.0110.02311.01
5.2.70.0100.03511.01
5.2.60.0120.03011.01
5.2.50.0130.03211.01
5.2.40.0120.01711.01
5.2.30.0080.02111.01
5.2.20.0070.03611.01
5.2.10.0080.02211.01
5.2.00.0130.01811.01
5.1.60.0100.02911.01
5.1.50.0100.01911.01
5.1.40.0090.02711.01
5.1.30.0100.01611.01
5.1.20.0080.02611.01
5.1.10.0050.02311.01
5.1.00.0050.02311.01
5.0.50.0080.02311.01
5.0.40.0050.02211.01
5.0.30.0050.02411.01
5.0.20.0070.02011.01
5.0.10.0050.02011.01
5.0.00.0060.03211.01
4.4.90.0100.01011.01
4.4.80.0050.01811.01
4.4.70.0050.01611.01
4.4.60.0030.02011.01
4.4.50.0030.01511.01
4.4.40.0030.02111.01
4.4.30.0050.01211.01
4.4.20.0040.01311.01
4.4.10.0080.01011.01
4.4.00.0030.02911.01
4.3.110.0050.02011.01
4.3.100.0090.01411.01
4.3.90.0050.01211.01
4.3.80.0080.02211.01
4.3.70.0070.02011.01
4.3.60.0070.01311.01
4.3.50.0050.01511.01
4.3.40.0050.02811.01
4.3.30.0000.02011.01
4.3.20.0030.01211.01
4.3.10.0030.01311.01
4.3.00.0030.01211.01

preferences:
44.78 ms | 400 KiB | 5 Q