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, serialize(new Test));

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.0070.01416.63
8.3.50.0100.00716.44
8.3.40.0060.00918.63
8.3.30.0040.01118.59
8.3.20.0110.00420.38
8.3.10.0050.00323.52
8.3.00.0030.00623.66
8.2.180.0040.01418.41
8.2.170.0000.01522.96
8.2.160.0100.00720.35
8.2.150.0120.00324.18
8.2.140.0080.00024.66
8.2.130.0040.00419.58
8.2.120.0080.00026.35
8.2.110.0030.00619.33
8.2.100.0080.00417.78
8.2.90.0000.00819.05
8.2.80.0040.00417.97
8.2.70.0040.00417.80
8.2.60.0030.01017.93
8.2.50.0060.00318.10
8.2.40.0040.00420.41
8.2.30.0040.00419.28
8.2.20.0080.00017.65
8.2.10.0060.00318.03
8.2.00.0000.00717.96
8.1.280.0060.01025.92
8.1.270.0040.00418.93
8.1.260.0090.00028.09
8.1.250.0040.00428.09
8.1.240.0090.00022.62
8.1.230.0100.00317.42
8.1.220.0030.00617.74
8.1.210.0060.00318.77
8.1.200.0000.00817.36
8.1.190.0030.00617.23
8.1.180.0300.00718.10
8.1.170.0030.00618.51
8.1.160.0050.00322.16
8.1.150.0030.00518.73
8.1.140.0030.00719.54
8.1.130.0030.00317.58
8.1.120.0000.00717.43
8.1.110.0050.00317.44
8.1.100.0040.00317.34
8.1.90.0040.00317.39
8.1.80.0040.00417.49
8.1.70.0040.00417.44
8.1.60.0040.00417.43
8.1.50.0040.00417.43
8.1.40.0030.00517.36
8.1.30.0000.00917.55
8.1.20.0000.00817.43
8.1.10.0000.00717.47
8.1.00.0070.00017.30
8.0.300.0050.00218.77
8.0.290.0070.00016.75
8.0.280.0030.00318.45
8.0.270.0040.00417.29
8.0.260.0000.00617.20
8.0.250.0000.00717.03
8.0.240.0040.00417.04
8.0.230.0080.00017.00
8.0.220.0030.00516.81
8.0.210.0000.00716.93
8.0.200.0080.00017.06
8.0.190.0040.00416.95
8.0.180.0000.00716.90
8.0.170.0090.00016.96
8.0.160.0000.00817.00
8.0.150.0340.00716.82
8.0.140.0070.00016.88
8.0.130.0000.00713.30
8.0.120.0000.00816.88
8.0.110.0050.00316.93
8.0.100.0000.00716.99
8.0.90.0080.00016.96
8.0.80.0130.01016.87
8.0.70.0040.00416.84
8.0.60.0040.00416.87
8.0.50.0040.00416.79
8.0.30.0120.00916.94
8.0.20.0100.00917.40
8.0.10.0000.00716.89
8.0.00.0080.01216.77
7.4.330.0050.00016.84
7.4.320.0030.00316.48
7.4.300.0030.00316.46
7.4.290.0030.00316.46
7.4.280.0000.00816.32
7.4.270.0040.00416.58
7.4.260.0000.00716.55
7.4.250.0030.00516.54
7.4.240.0040.00416.45
7.4.230.0040.00416.60
7.4.220.0090.00916.53
7.4.210.0100.00816.48
7.4.200.0040.00416.64
7.4.160.0060.01316.29
7.4.150.0060.01317.40
7.4.140.0130.00717.86
7.4.130.0080.01016.46
7.4.120.0060.01116.51
7.4.110.0070.01516.36
7.4.100.0070.01116.69
7.4.90.0090.00916.61
7.4.80.0100.00619.39
7.4.70.0110.00816.59
7.4.60.0090.00916.20
7.4.50.0070.00716.35
7.4.40.0100.00616.34
7.4.30.0100.00716.35
7.4.00.0070.01014.71
7.3.330.0050.00013.22
7.3.320.0050.00013.12
7.3.310.0030.00316.32
7.3.300.0070.00016.15
7.3.290.0000.00716.28
7.3.280.0100.00716.26
7.3.270.0100.00717.40
7.3.260.0120.00616.44
7.3.250.0100.00816.43
7.3.240.0120.01016.43
7.3.230.0070.01416.39
7.3.210.0110.00616.41
7.3.200.0030.01319.39
7.3.190.0090.00916.46
7.3.180.0060.01116.41
7.3.170.0090.01216.44
7.3.160.0100.00616.52
7.2.330.0060.01116.38
7.2.320.0120.00916.28
7.2.310.0060.01216.45
7.2.300.0060.01716.47
7.2.290.0030.01316.43
7.2.60.0000.01616.79
7.2.00.0070.00719.41
7.1.200.0030.00915.67
7.1.100.0060.00617.96
7.1.70.0060.00316.91
7.1.60.0130.01019.27
7.1.50.0060.01616.89
7.1.00.0000.08022.31
7.0.200.0060.00316.35
7.0.60.0500.06719.91
7.0.50.0070.08717.88
7.0.40.0070.06320.41
7.0.30.0200.03720.15
7.0.20.0170.04320.10
7.0.10.0130.05020.16
7.0.00.0030.06720.16
5.6.280.0000.06020.91
5.6.210.1100.09020.53
5.6.200.0070.03718.22
5.6.190.0100.09020.58
5.6.180.0430.07320.77
5.6.170.0270.07020.51
5.6.160.0100.04020.50
5.6.150.0000.04718.11
5.6.140.0070.05018.28
5.6.130.0100.07018.17
5.6.120.0070.06721.07
5.6.110.0030.07321.01
5.6.100.0130.08320.89
5.6.90.0100.08321.02
5.6.80.0170.06320.38
5.5.350.0000.08320.40
5.5.340.0230.03717.95
5.5.330.0130.06720.19
5.5.320.0630.06320.38
5.5.310.0200.06320.30
5.5.300.0030.04717.96
5.5.290.0030.04318.01
5.5.280.0070.06720.97
5.5.270.0070.05720.82
5.5.260.0030.08320.65
5.5.250.0030.04720.47
5.5.240.0130.07320.29

preferences:
60.09 ms | 401 KiB | 5 Q