3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { function __wakeup() { print "In __wakeup\n"; } } session_start(); session_decode('core|a:4:{s:23:"_session_validator_data";a:4:{s:11:"remote_addr";s:9:"127.0.0.1";s:8:"http_via";s:0:"";s:20:"http_x_forwarded_for";s:0:"";s:15:"http_user_agent";s:22:"}}test|a:1:{i:0;i:23;}";}s:8:"messages";O:34:"Mage_Core_Model_Message_Collection":2:{s:12:"*_messages";a:0:{}s:20:"*_lastAddedMessage";N;}s:12:"visitor_data";a:15:{s:0:"";N;s:11:"server_addr";s:4:"1234";s:11:"remote_addr";s:4:"1234";s:11:"http_secure";b:0;s:9:"http_host";s:9:"localhost";s:15:"http_user_agent";s:22:"}}test|a:1:{i:0;i:23;}";s:20:"http_accept_language";s:0:"";s:19:"http_accept_charset";s:0:"";s:11:"request_uri";s:9:"/magento/";s:10:"session_id";s:6:"xxxxxx";s:12:"http_referer";s:0:"";s:14:"first_visit_at";s:19:"2015-12-18 15:01:24";s:14:"is_new_visitor";b:0;s:13:"last_visit_at";s:19:"2015-12-18 15:01:30";s:10:"visitor_id";s:3:"227";}s:8:"last_url";s:41:"http://localhost/magento/cms/index/index/";}customer_base|a:3:{s:23:"_session_validator_data";a:4:{s:11:"remote_addr";s:9:"127.0.0.1";s:8:"http_via";s:0:"";s:20:"http_x_forwarded_for";s:0:"";s:15:"http_user_agent";s:22:"}}test|a:1:{i:0;i:23;}";}s:8:"messages";O:34:"Mage_Core_Model_Message_Collection":2:{s:12:"*_messages";a:0:{}s:20:"*_lastAddedMessage";N;}s:19:"wishlist_item_count";i:0;}checkout|a:2:{s:23:"_session_validator_data";a:4:{s:11:"remote_addr";s:9:"127.0.0.1";s:8:"http_via";s:0:"";s:20:"http_x_forwarded_for";s:0:"";s:15:"http_user_agent";s:22:"}}test|a:1:{i:0;i:23;}";}s:8:"messages";O:34:"Mage_Core_Model_Message_Collection":2:{s:12:"*_messages";a:0:{}s:20:"*_lastAddedMessage";N;}}catalog|a:2:{s:23:"_session_validator_data";a:4:{s:11:"remote_addr";s:9:"127.0.0.1";s:8:"http_via";s:0:"";s:20:"http_x_forwarded_for";s:0:"";s:15:"http_user_agent";s:22:"}}test|a:1:{i:0;i:23;}";}s:8:"messages";O:34:"Mage_Core_Model_Message_Collection":2:{s:12:"*_messages";a:0:{}s:20:"*_lastAddedMessage";N;}}store_default|a:1:{s:23:"_session_validator_data";a:4:{s:11:"remote_addr";s:9:"127.0.0.1";s:8:"http_via";s:0:"";s:20:"http_x_forwarded_for";s:0:"";s:15:"http_user_agent";s:22:"}}test|a:1:{i:0;i:23;}";}}store_french|a:1:{s:23:"_session_validator_data";a:4:{s:11:"remote_addr";s:9:"127.0.0.1";s:8:"http_via";s:0:"";s:20:"http_x_forwarded_for";s:0:"";s:15:"http_user_agent";s:22:"}}test|a:1:{i:0;i:23;}";}}store_german|a:1:{s:23:"_session_validator_data";a:4:{s:11:"remote_addr";s:9:"127.0.0.1";s:8:"http_via";s:0:"";s:20:"http_x_forwarded_for";s:0:"";s:15:"http_user_agent";s:22:"}}test|a:1:{i:0;i:23;}";}}'); var_dump($_SESSION);

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.0140.00416.63
8.3.50.0110.00921.27
8.3.40.0000.01518.78
8.3.30.0130.00318.71
8.3.20.0100.01020.16
8.3.10.0000.00823.44
8.3.00.0080.00023.65
8.2.180.0110.00416.50
8.2.170.0180.00022.96
8.2.160.0100.01020.39
8.2.150.0100.01024.18
8.2.140.0140.00324.66
8.2.130.0040.01219.77
8.2.120.0000.00826.35
8.2.110.0040.00721.18
8.2.100.0090.00317.80
8.2.90.0000.00919.09
8.2.80.0000.00817.97
8.2.70.0060.00317.47
8.2.60.0040.00418.04
8.2.50.0060.00318.07
8.2.40.0060.00320.27
8.2.30.0030.00519.40
8.2.20.0000.00817.70
8.2.10.0050.00318.00
8.2.00.0040.00418.02
8.1.280.0090.00625.92
8.1.270.0060.00318.63
8.1.260.0090.00028.09
8.1.250.0040.00428.09
8.1.240.0040.00719.13
8.1.230.0040.00719.22
8.1.220.0030.00517.74
8.1.210.0030.00518.77
8.1.200.0030.00617.25
8.1.190.0080.00017.10
8.1.180.0060.00318.10
8.1.170.0040.00418.53
8.1.160.0040.00420.67
8.1.150.0000.00818.86
8.1.140.0070.00319.62
8.1.130.0080.00017.65
8.1.120.0040.00417.33
8.1.110.0000.00817.40
8.1.100.0050.00317.30
8.1.90.0070.00017.49
8.1.80.0080.00017.29
8.1.70.0030.00317.39
8.1.60.0080.00017.53
8.1.50.0030.00517.48
8.1.40.0030.00517.43
8.1.30.0050.00317.52
8.1.20.0020.00517.52
8.1.10.0000.00817.31
8.1.00.0040.00417.30
8.0.300.0070.00018.77
8.0.290.0050.00216.63
8.0.280.0030.00318.28
8.0.270.0070.00017.21
8.0.260.0030.00317.13
8.0.250.0060.00016.87
8.0.240.0040.00416.85
8.0.230.0040.00416.87
8.0.220.0040.00416.91
8.0.210.0030.00516.90
8.0.200.0070.00016.97
8.0.190.0030.00517.02
8.0.180.0000.00716.92
8.0.170.0040.00416.94
8.0.160.0040.00316.91
8.0.150.0080.00016.80
8.0.140.0070.00016.91
8.0.130.0030.00313.32
8.0.120.0040.00416.84
8.0.110.0000.00716.93
8.0.100.0080.00016.95
8.0.90.0040.00416.93
8.0.80.0070.01016.87
8.0.70.0040.00416.89
8.0.60.0050.00216.88
8.0.50.0040.00416.96
8.0.30.0110.00717.16
8.0.20.0100.00917.40
8.0.10.0070.00017.09
8.0.00.0130.00616.63
7.4.330.0030.00316.73
7.4.320.0070.00016.50
7.4.300.0390.01016.50
7.4.290.0040.00416.43
7.4.280.0000.00816.55
7.4.270.0070.00016.61
7.4.260.0000.00716.54
7.4.250.0000.00816.38
7.4.240.0060.00116.45
7.4.230.0000.00816.63
7.4.220.0070.01116.67
7.4.210.0090.00816.54
7.4.200.0030.00316.57
7.4.160.0040.01216.66
7.4.150.0040.01517.40
7.4.140.0080.01217.86
7.4.130.0110.00916.39
7.4.120.0120.00716.54
7.4.110.0090.01416.50
7.4.100.0080.01116.33
7.4.90.0120.00616.55
7.4.80.0040.01219.39
7.4.70.0080.00816.57
7.4.60.0060.00916.61
7.4.50.0060.00916.57
7.4.40.0100.00616.45
7.4.30.0120.01016.19
7.4.00.0080.00915.03
7.3.330.0050.00013.15
7.3.320.0030.00313.21
7.3.310.0070.00016.12
7.3.300.0000.00716.31
7.3.290.0030.00316.23
7.3.280.0070.01216.26
7.3.270.0180.00017.40
7.3.260.0070.01016.17
7.3.250.0100.00816.45
7.3.240.0070.01016.29
7.3.230.0030.01316.39
7.3.210.0060.01016.40
7.3.200.0110.00519.39
7.3.190.0120.00916.47
7.3.180.0030.01216.24
7.3.170.0090.01016.44
7.3.160.0120.00416.48
7.3.120.0060.01214.95
7.3.110.0070.01014.71
7.3.100.0090.00614.56
7.3.90.0000.01714.72
7.3.80.0110.00714.66
7.3.70.0100.00314.66
7.3.60.0070.00714.76
7.3.50.0110.00314.66
7.3.40.0030.01314.93
7.3.30.0040.00814.64
7.3.20.0070.00716.50
7.3.10.0070.00716.58
7.3.00.0070.00716.61
7.2.330.0080.01116.58
7.2.320.0070.01316.31
7.2.310.0100.01616.63
7.2.300.0130.00316.62
7.2.290.0030.01216.40
7.2.250.0120.00614.85
7.2.240.0030.01714.84
7.2.230.0060.00914.88
7.2.220.0070.01014.65
7.2.210.0040.01415.11
7.2.200.0100.00314.91
7.2.190.0070.01014.94
7.2.180.0100.00714.78
7.2.170.0040.00814.76
7.2.60.0070.00716.84
7.2.00.0060.00619.08
7.1.330.0090.00615.81
7.1.320.0070.00715.52
7.1.310.0140.00415.50
7.1.300.0090.00615.64
7.1.290.0000.01515.69
7.1.280.0100.00015.84
7.1.270.0000.00915.67
7.1.260.0100.00315.52
7.1.200.0000.01215.77
7.1.100.0040.00718.01
7.1.70.0060.00617.02
7.1.60.0100.01419.27
7.1.50.0060.00616.91
7.1.00.0030.07722.36
7.0.200.0000.00716.35
7.0.60.0530.05719.96
7.0.50.0000.09017.89
7.0.40.0070.05720.24
7.0.30.0170.04020.08
7.0.20.0300.05720.09
7.0.10.0100.04720.23
7.0.00.0030.07720.33
5.6.280.0100.04321.11
5.6.210.1170.05020.73
5.6.200.0100.03318.15
5.6.190.0100.07720.55
5.6.180.0330.04720.61
5.6.170.0370.06720.48
5.6.160.0100.08020.49
5.6.150.0130.07018.25
5.6.140.0130.07318.18
5.6.130.0100.07718.29
5.6.120.0030.06021.14
5.6.110.0000.04721.05
5.6.100.0030.08720.97
5.6.90.0170.07020.98
5.6.80.0230.07020.29
5.5.350.0030.08020.53
5.5.340.0170.05317.99
5.5.330.0230.06720.57
5.5.320.0630.07020.32
5.5.310.0270.08020.26
5.5.300.0130.06717.98
5.5.290.0000.04317.96
5.5.280.0170.07720.62
5.5.270.0130.07720.89
5.5.260.0070.05720.86
5.5.250.0070.04720.71
5.5.240.0130.04020.22

preferences:
51.93 ms | 401 KiB | 5 Q