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; $mt = microtime(true); $_f = create_function("", "return ".utf8_decode(var_export($arr, true)).";"); $_arr = call_user_func($_f); print microtime(true) - $mt; $mt = microtime(true); $_arr = include "data://text/php,base64;".base64_encode("return ".utf8_decode(var_export($arr, true)).";"); print microtime(true) - $mt;

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.3.10.0120.00616.22
7.3.00.0120.00416.25
7.2.130.0030.00916.76
7.2.120.0160.00016.38
7.2.110.0100.01016.43
7.2.100.0000.01816.28
7.2.90.0120.00316.56
7.2.80.0110.00616.52
7.2.70.0100.00716.38
7.2.60.0170.00316.35
7.2.50.0040.00817.02
7.2.40.0100.00716.38
7.2.30.0090.00916.52
7.2.20.0180.00016.36
7.2.10.0150.01116.33
7.2.00.0130.00718.26
7.1.250.0110.00415.31
7.1.70.0060.00616.95
7.1.60.0070.01719.40
7.1.50.0100.01416.95
7.1.00.0070.04022.45
7.0.200.0040.00416.46
7.0.140.0070.07022.05
7.0.60.0070.08719.82
7.0.50.0100.04017.86
7.0.40.0100.07017.79
7.0.30.0070.08317.66
7.0.20.0070.07717.75
7.0.10.0030.05717.66
7.0.00.0070.04717.72
5.6.280.0000.07321.15
5.6.210.0070.06720.49
5.6.200.0070.08318.29
5.6.190.0100.07318.18
5.6.180.0070.08318.23
5.6.170.0100.04718.25
5.6.160.0030.05318.15
5.6.150.0070.08318.14
5.6.140.0070.04018.18
5.6.130.0030.04318.17
5.6.120.0170.07318.28
5.6.110.0100.08318.17
5.6.100.0070.06318.22
5.6.90.0000.05018.20
5.6.80.0070.07717.57
5.6.70.0030.06717.53
5.6.60.0030.08317.56
5.6.50.0070.07017.50
5.6.40.0030.08317.55
5.6.30.0130.04717.65
5.6.20.0000.08717.52
5.6.10.0100.05717.58
5.6.00.0070.03717.53
5.5.350.0300.07720.44
5.5.340.0130.08017.96
5.5.330.0030.04317.96
5.5.320.0130.07318.11
5.5.310.0170.06317.98
5.5.300.0030.04317.96
5.5.290.0030.08318.03
5.5.280.0100.08017.95
5.5.270.0070.08717.91
5.5.260.0070.06317.97
5.5.250.0070.07717.73
5.5.240.0070.04717.43
5.5.230.0070.08017.32
5.5.220.0030.08017.44
5.5.210.0070.07717.43
5.5.200.0100.07717.30
5.5.190.0000.08717.29
5.5.180.0030.08317.36
5.5.160.0070.03717.39
5.5.150.0030.04317.29
5.5.140.0000.04017.39
5.5.130.0030.03717.30
5.5.120.0000.04017.34
5.5.110.0000.04017.41
5.5.100.0030.03717.24
5.5.90.0030.03717.20
5.5.80.0070.03317.31
5.5.70.0000.04017.22
5.5.60.0030.03717.29
5.5.50.0030.03717.22
5.5.40.0030.03717.32
5.5.30.0100.03717.31
5.5.20.0030.03717.22
5.5.10.0070.03717.19
5.5.00.0000.04317.25
5.4.450.0070.07019.36
5.4.440.0000.04719.34
5.4.430.0070.06019.35
5.4.420.0030.08719.21
5.4.410.0070.04019.18
5.4.400.0030.04019.02
5.4.390.0070.05319.10
5.4.380.0070.07019.11
5.4.370.0070.06319.01
5.4.360.0130.07718.89
5.4.350.0070.08019.05
5.4.340.0070.07719.03
5.4.320.0000.04318.89
5.4.310.0070.03719.05
5.4.300.0100.03018.89
5.4.290.0030.03719.14
5.4.280.0030.03719.09
5.4.270.0070.07319.12
5.4.260.0030.03719.02
5.4.250.0100.03019.05
5.4.240.0070.03319.09
5.4.230.0000.04019.13
5.4.220.0000.04019.13
5.4.210.0030.03718.88
5.4.200.0030.03719.09
5.4.190.0030.04719.05
5.4.180.0030.03718.99
5.4.170.0030.03718.95
5.4.160.0000.04319.04
5.4.150.0030.04019.14
5.4.140.0070.03016.29
5.4.130.0100.06316.39
5.4.120.0000.08016.54
5.4.110.0070.06716.45
5.4.100.0030.08016.41
5.4.90.0030.08016.35
5.4.80.0100.06716.39
5.4.70.0030.08016.23
5.4.60.0030.04316.53
5.4.50.0100.06016.45
5.4.40.0130.06316.43
5.4.30.0070.07016.21
5.4.20.0170.08316.52
5.4.10.0030.04316.21
5.4.00.0030.08015.98
5.3.290.0070.03714.71
5.3.280.0000.04714.60
5.3.270.0000.04014.65
5.3.260.0030.04014.68
5.3.250.0000.04014.67
5.3.240.0030.04314.61
5.3.230.0100.03314.68
5.3.220.0030.07714.54
5.3.210.0070.06714.63
5.3.200.0100.06714.65
5.3.190.0100.07314.80
5.3.180.0100.05714.63
5.3.170.0170.04014.64
5.3.160.0030.07014.54
5.3.150.0030.06014.57
5.3.140.0000.08014.67
5.3.130.0170.07314.55
5.3.120.0100.07314.78
5.3.110.0100.05314.78
5.3.100.0130.07014.02
5.3.90.0070.06714.08
5.3.80.0030.03714.14
5.3.70.0070.07714.05
5.3.60.0070.05013.86
5.3.50.0070.06714.00
5.3.40.0070.07713.81
5.3.30.0170.06013.95
5.3.20.0070.07313.79
5.3.10.0070.06713.75
5.3.00.0070.07313.70
5.2.170.0000.04311.37
5.2.160.0030.06711.13
5.2.150.0100.06011.26
5.2.140.0070.05011.37
5.2.130.0130.05711.23
5.2.120.0030.04311.12
5.2.110.0070.05011.18
5.2.100.0030.03311.11
5.2.90.0130.03711.16
5.2.80.0070.06311.02
5.2.70.0030.05011.21
5.2.60.0070.06010.93
5.2.50.0030.06711.09
5.2.40.0000.05310.93
5.2.30.0000.03711.07
5.2.20.0030.03010.89
5.2.10.0000.06710.79
5.2.00.0030.06010.71
5.1.60.0000.0609.97
5.1.50.0030.05010.00
5.1.40.0000.0509.94
5.1.30.0070.06310.35
5.1.20.0030.05710.33
5.1.10.0030.05710.09
5.1.00.0000.05010.02
5.0.50.0100.0408.66
5.0.40.0070.0438.40
5.0.30.0070.0638.22
5.0.20.0070.0408.26
5.0.10.0000.0208.29
5.0.00.0070.0408.02
4.4.90.0030.0307.85
4.4.80.0000.0407.85
4.4.70.0070.0137.85
4.4.60.0000.0277.85
4.4.50.0000.0407.85
4.4.40.0000.0607.85
4.4.30.0030.0277.85
4.4.20.0030.0377.85
4.4.10.0030.0377.85
4.4.00.0070.0377.85
4.3.110.0000.0407.85
4.3.100.0000.0337.85
4.3.90.0000.0337.88
4.3.80.0030.0277.91
4.3.70.0070.0337.92
4.3.60.0030.0237.92
4.3.50.0030.0337.92
4.3.40.0000.0537.92
4.3.30.0000.0307.92
4.3.20.0000.0377.92
4.3.10.0000.0407.92
4.3.00.0000.0377.92

preferences:
39.09 ms | 400 KiB | 5 Q