3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array( 1,2,3,4, array("wat" => "watdf8u38472309ufj"), ); $mt = microtime(true); $_arr = eval(utf8_decode(var_export($arr, true).";")); print microtime(true) - $mt."\n\n"; $mt = microtime(true); $_f = create_function("", "return ".utf8_decode(var_export($arr, true)).";"); $_arr = call_user_func($_f); print microtime(true) - $mt."\n\n"; $mt = microtime(true); $_arr = include "data://text/php,base64;".base64_encode("return ".utf8_decode(var_export($arr, true)).";"); print microtime(true) - $mt."\n\n";

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)
7.4.00.0100.00714.89
7.3.120.0060.01314.83
7.3.110.0110.00715.02
7.3.100.0030.01414.81
7.3.90.0030.00914.89
7.3.80.0060.00914.75
7.3.70.0060.00614.89
7.3.60.0030.01014.63
7.3.50.0060.00914.97
7.3.40.0070.00714.96
7.3.30.0070.00314.89
7.3.20.0030.01416.68
7.3.10.0070.00816.54
7.3.00.0050.01216.79
7.2.250.0140.00015.05
7.2.240.0030.01515.26
7.2.230.0080.00414.88
7.2.220.0080.00815.13
7.2.210.0000.01315.34
7.2.200.0080.00814.99
7.2.190.0030.00615.12
7.2.180.0100.00315.11
7.2.170.0060.00915.15
7.2.130.0130.01317.00
7.2.120.0090.01117.09
7.2.110.0080.00817.01
7.2.100.0040.01217.11
7.2.90.0110.00416.71
7.2.80.0070.00316.73
7.2.70.0000.01517.04
7.2.60.0060.00917.01
7.2.50.0120.00017.06
7.2.40.0110.00417.06
7.2.30.0100.00016.87
7.2.20.0060.00316.82
7.2.10.0080.00816.95
7.2.00.0090.00517.93
7.1.330.0070.01015.86
7.1.320.0060.00615.77
7.1.310.0080.00415.69
7.1.300.0070.00315.83
7.1.290.0090.00315.79
7.1.280.0030.01015.80
7.1.270.0060.00615.88
7.1.260.0000.01515.72
7.1.250.0000.01815.79
7.1.70.0030.01417.28
7.1.60.0040.00717.10
7.1.50.0070.01116.84
7.1.00.0030.04022.36
7.0.200.0030.01216.53
7.0.140.0070.07022.04
7.0.60.0070.07319.92
7.0.50.0070.08317.86
7.0.40.0170.07017.79
7.0.30.0000.05717.76
7.0.20.0030.04017.80
7.0.10.0070.05317.68
7.0.00.0070.04317.81
5.6.280.0000.07720.86
5.6.210.0100.07020.48
5.6.200.0000.09318.20
5.6.190.0070.08318.23
5.6.180.0130.03018.16
5.6.170.0070.08318.29
5.6.160.0030.04018.15
5.6.150.0070.06018.29
5.6.140.0130.03718.15
5.6.130.0100.06018.21
5.6.120.0100.08018.28
5.6.110.0100.05018.14
5.6.100.0030.08318.20
5.6.90.0130.08018.12
5.6.80.0070.06017.56
5.6.70.0100.08017.57
5.6.60.0070.04017.66
5.6.50.0100.07317.63
5.6.40.0030.05717.64
5.6.30.0030.08317.64
5.6.20.0030.04317.50
5.6.10.0070.07717.62
5.6.00.0130.07317.48
5.5.350.0070.07020.36
5.5.340.0070.04317.98
5.5.330.0070.08317.97
5.5.320.0070.05017.98
5.5.310.0300.03018.02
5.5.300.0100.07718.07
5.5.290.0000.05717.95
5.5.280.0070.08017.97
5.5.270.0070.07318.01
5.5.260.0070.08718.07
5.5.250.0070.06717.88
5.5.240.0030.07717.36
5.5.230.0270.05717.37
5.5.220.0030.04317.36
5.5.210.0030.04017.36
5.5.200.0000.04317.29
5.5.190.0100.07017.33
5.5.180.0000.05017.35
5.5.160.0070.07717.30
5.5.150.0200.07717.45
5.5.140.0100.07717.41
5.5.130.0170.07017.32
5.5.120.0130.07317.43
5.5.110.0130.07717.29
5.5.100.0070.08017.20
5.5.90.0070.07717.27
5.5.80.0200.06317.29
5.5.70.0070.08017.28
5.5.60.0070.05017.25
5.5.50.0030.03717.29
5.5.40.0030.03717.19
5.5.30.0030.03717.21
5.5.20.0000.04017.32
5.5.10.0000.04017.18
5.5.00.0000.04017.31
5.4.450.0070.08019.46
5.4.440.0070.06019.34
5.4.430.0030.05719.63
5.4.420.0030.06719.36
5.4.410.0030.07319.29
5.4.400.0100.07719.10
5.4.390.0100.05718.89
5.4.380.0200.04018.95
5.4.370.0030.05319.05
5.4.360.0100.07018.89
5.4.350.0170.04019.27
5.4.340.0000.08719.02
5.4.320.0000.08319.27
5.4.310.0170.05718.98
5.4.300.0130.04019.01
5.4.290.0130.06718.89
5.4.280.0000.08019.03
5.4.270.0070.07719.10
5.4.260.0100.07719.04
5.4.250.0070.08019.09
5.4.240.0100.07719.27
5.4.230.0070.06019.11
5.4.220.0100.05019.05
5.4.210.0030.03718.95
5.4.200.0000.04019.04
5.4.190.0030.03719.00
5.4.180.0070.04319.09
5.4.170.0100.03019.05
5.4.160.0000.04019.09
5.4.150.0030.03719.10
5.4.140.0070.03316.30
5.4.130.0000.03716.38
5.4.120.0000.03716.42
5.4.110.0000.03716.49
5.4.100.0000.03716.43
5.4.90.0000.03716.38
5.4.80.0000.03716.31
5.4.70.0030.03316.43
5.4.60.0030.03316.21
5.4.50.0030.04716.36
5.4.40.0030.07716.41
5.4.30.0030.07316.38
5.4.20.0070.07716.38
5.4.10.0130.06716.27
5.4.00.0070.07015.84
5.3.290.0030.06014.68
5.3.280.0100.07014.58
5.3.270.0100.05714.63
5.3.260.0070.03714.67
5.3.250.0030.03714.66
5.3.240.0000.03714.83
5.3.230.0100.03014.46
5.3.220.0030.03714.55
5.3.210.0030.03714.61
5.3.200.0070.03314.63
5.3.190.0070.03314.59
5.3.180.0030.04314.57
5.3.170.0070.03314.59
5.3.160.0000.03714.63
5.3.150.0070.03314.54
5.3.140.0000.08014.54
5.3.130.0030.08014.64
5.3.120.0070.06714.58
5.3.110.0100.07714.59
5.3.100.0130.06014.01
5.3.90.0100.07313.99
5.3.80.0030.08014.09
5.3.70.0070.07314.06
5.3.60.0070.07014.11
5.3.50.0030.07713.82
5.3.40.0030.07014.05
5.3.30.0100.06313.82
5.3.20.0070.07313.71
5.3.10.0000.05713.71
5.3.00.0100.05013.87
5.2.170.0030.06711.20
5.2.160.0100.04311.23
5.2.150.0030.04311.06
5.2.140.0000.06711.12
5.2.130.0030.07011.16
5.2.120.0030.05011.09
5.2.110.0130.05011.17
5.2.100.0130.05710.96
5.2.90.0070.06011.16
5.2.80.0030.06711.08
5.2.70.0000.06311.10
5.2.60.0070.05710.92
5.2.50.0070.06011.25
5.2.40.0070.05011.08
5.2.30.0070.06011.02
5.2.20.0030.06310.83
5.2.10.0000.06310.87
5.2.00.0030.04710.65
5.1.60.0000.03010.01
5.1.50.0130.0179.98
5.1.40.0100.0409.99
5.1.30.0030.03010.30
5.1.20.0000.03710.59
5.1.10.0100.02310.01
5.1.00.0030.02710.19
5.0.50.0130.0378.55
5.0.40.0000.0278.40
5.0.30.0070.0608.29
5.0.20.0000.0278.29
5.0.10.0000.0208.28
5.0.00.0000.0338.23
4.4.90.0000.0337.90
4.4.80.0000.0307.90
4.4.70.0030.0207.90
4.4.60.0000.0407.90
4.4.50.0000.0407.90
4.4.40.0000.0277.90
4.4.30.0030.0237.90
4.4.20.0000.0207.90
4.4.10.0070.0177.90
4.4.00.0030.0507.90
4.3.110.0030.0377.90
4.3.100.0000.0207.90
4.3.90.0030.0277.90
4.3.80.0000.0277.90
4.3.70.0000.0307.90
4.3.60.0030.0307.90
4.3.50.0030.0307.90
4.3.40.0030.0477.90
4.3.30.0000.0177.90
4.3.20.0070.0307.90
4.3.10.0030.0337.90
4.3.00.0000.0407.90

preferences:
36.57 ms | 401 KiB | 5 Q