3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace T ; define('ARGUMENT', uniqid()); function callWithArgs(callable $callback, array $args = []) { return function($param) use($callback, $args) { array_walk($args, function(&$arg) use($param) { $arg === \T\ARGUMENT and $arg = $param; }); return $callback(...$args); }; } $t = T\callWithArgs('str_replace', ['dolor', 'DOLOR', T\ARGUMENT]); $string = 'Lorem ipsum dolor simet'; var_dump( $t($string) );

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.0.110.0000.00716.91
8.0.100.0000.00716.95
8.0.90.0040.00416.88
8.0.80.0030.01316.89
8.0.70.0030.00516.83
8.0.60.0000.00716.95
8.0.50.0040.00416.79
8.0.30.0190.00216.93
8.0.20.0110.00817.40
8.0.10.0040.00416.96
8.0.00.0110.00616.60
7.4.240.0000.00716.59
7.4.230.0030.00316.43
7.4.220.0040.01416.63
7.4.210.0090.00916.64
7.4.200.0000.00716.55
7.4.160.0030.01216.54
7.4.150.0060.01217.40
7.4.140.0150.00617.86
7.4.130.0090.00916.46
7.4.120.0090.00916.55
7.4.110.0060.01016.48
7.4.100.0070.01116.43
7.4.90.0160.00916.41
7.4.80.0070.01019.39
7.4.70.0070.01016.48
7.4.60.0030.01716.47
7.4.50.0110.00416.38
7.4.40.0090.00616.48
7.4.30.0120.00916.45
7.4.00.0130.00314.90
7.3.300.0070.00016.19
7.3.290.0070.00716.34
7.3.280.0080.01016.32
7.3.270.0030.01617.40
7.3.260.0100.00716.27
7.3.250.0100.00716.50
7.3.240.0020.01616.32
7.3.230.0150.00416.58
7.3.210.0110.00816.31
7.3.200.0140.00319.39
7.3.190.0070.01416.44
7.3.180.0120.00416.53
7.3.170.0100.01016.39
7.3.160.0060.00916.44
7.3.10.0270.00016.45
7.3.00.0190.00516.66
7.2.330.0110.00716.58
7.2.320.0100.00716.43
7.2.310.0120.00416.40
7.2.300.0100.01016.51
7.2.290.0030.01316.51
7.2.130.0130.01016.83
7.2.120.0070.00716.86
7.2.110.0120.00416.71
7.2.100.0100.00516.67
7.2.90.0080.00616.76
7.2.80.0070.00716.77
7.2.70.0050.01016.61
7.2.60.0090.00416.71
7.2.50.0090.00516.74
7.2.40.0040.01116.59
7.2.30.0080.00416.83
7.2.20.0110.01116.58
7.2.10.0120.00416.77
7.2.00.0060.01017.54
7.1.250.0130.00915.70
7.1.240.0020.01215.48
7.1.230.0210.00915.68
7.1.220.0120.00715.45
7.1.210.0070.01115.43
7.1.200.0060.00515.52
7.1.190.0100.00715.31
7.1.180.0130.00215.56
7.1.170.0050.01015.52
7.1.160.0060.00615.46
7.1.150.0050.00715.31
7.1.140.0060.00715.55
7.1.130.0080.00715.45
7.1.120.0080.00415.44
7.1.110.0110.00515.63
7.1.100.0070.00516.37
7.1.90.0080.00515.52
7.1.80.0130.00115.66
7.1.70.0090.00816.14
7.1.60.0110.01116.78
7.1.50.0100.00315.99
7.1.40.0120.00315.60
7.1.30.0060.01015.74
7.1.20.0110.00415.45
7.1.10.0100.01215.48
7.1.00.0150.02617.80
7.0.330.0160.01215.18
7.0.320.0060.01115.18
7.0.310.0110.00615.15
7.0.300.0170.00615.23
7.0.290.0100.00714.97
7.0.280.0080.00715.04
7.0.270.0190.00515.26
7.0.260.0150.00915.06
7.0.250.0090.00815.19
7.0.240.0070.01015.22
7.0.230.0070.00715.32
7.0.220.0120.00315.28
7.0.210.0050.01014.95
7.0.200.0110.00515.57
7.0.190.0130.00915.18
7.0.180.0050.01415.23
7.0.170.0190.00915.15
7.0.160.0160.00815.20
7.0.150.0070.01014.92
7.0.140.0090.00315.17
7.0.130.0100.01015.07
7.0.120.0220.00915.34
7.0.110.0170.00615.14
7.0.100.0070.00915.09
7.0.90.0130.00815.16
7.0.80.0140.00315.28
7.0.70.0060.00915.10
7.0.60.0140.03117.29
7.0.50.0090.01716.04
7.0.40.0080.02415.43
7.0.30.0110.02315.68
7.0.20.0140.02215.58
7.0.10.0030.03815.67
7.0.00.0140.02915.69
5.6.380.0020.01014.04
5.6.370.0090.00514.21
5.6.360.0190.01114.21
5.6.350.0120.00514.34
5.6.340.0100.01214.13
5.6.330.0210.00314.13
5.6.320.0100.00514.09
5.6.310.0120.00714.02
5.6.300.0100.00714.17
5.6.290.0210.01114.00
5.6.280.0160.01816.29
5.6.270.0250.00513.99
5.6.260.0270.00914.03
5.6.250.0190.00714.25
5.6.240.0350.00914.00
5.6.230.0170.01313.99
5.6.220.0120.01214.09
5.6.210.0170.01616.30
5.6.200.0190.02115.47
5.6.190.0180.02416.21
5.6.180.0250.02616.20
5.6.170.0240.02216.09
5.6.160.0130.03016.11
5.6.150.0190.03015.35
5.6.140.0120.01815.51
5.6.130.0090.02115.49
5.6.120.0110.03116.40
5.6.110.0090.03416.34
5.6.100.0090.01816.42
5.6.90.0100.03116.38
5.6.80.0060.03116.14
5.6.70.0120.00313.94
5.6.60.0070.01013.97
5.6.50.0070.00613.93
5.6.40.0130.00313.91
5.6.30.0070.00713.99
5.6.20.0150.00513.84
5.6.10.0070.00714.12
5.6.00.0120.00614.07
5.5.380.0110.00611.10
5.5.370.0170.00611.14
5.5.360.0160.00411.05
5.5.350.0160.01614.29
5.5.340.0180.01913.45
5.5.330.0150.01614.13
5.5.320.0340.02414.04
5.5.310.0230.02314.11
5.5.300.0050.01713.40
5.5.290.0010.02613.25
5.5.280.0080.03114.42
5.5.270.0140.02114.27
5.5.260.0080.02914.24
5.5.250.0060.01814.31
5.5.240.0130.02714.04
5.5.230.0070.00311.07
5.5.220.0100.00211.09
5.5.210.0050.00510.98
5.5.200.0100.00211.12
5.5.190.0020.00911.11
5.5.180.0070.00611.03
5.5.170.0080.00411.03
5.5.160.0040.00411.06
5.5.150.0050.00811.08
5.5.140.0090.00410.95
5.5.130.0060.01011.00
5.5.120.0080.00510.84
5.5.110.0090.00510.96
5.5.100.0060.00810.84
5.5.90.0080.00411.08
5.5.80.0070.00410.96
5.5.70.0110.00510.94
5.5.60.0120.00310.99
5.5.50.0130.00311.07
5.5.40.0120.00210.95
5.5.30.0130.00410.94
5.5.20.0060.00611.04
5.5.10.0110.00111.02
5.5.00.0040.00410.94

preferences:
30.47 ms | 400 KiB | 5 Q