3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test implements SessionHandlerInterface { public function close ( ){return true;} public function destroy ( $session_id ){return true;} public function gc ( $maxlifetime ){return true;} public function open ( $save_path , $session_name ){return true;} public function read ( $session_id ){return 'testtest|s:7:"testing";';} public function write ( $session_id , $session_data ){return true;} } $test = new Test(); session_set_save_handler($test); session_start();

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.40.0110.00418.75
8.3.30.0070.00718.67
8.3.20.0070.00020.35
8.3.10.0040.00421.95
8.3.00.0040.00417.78
8.2.170.0090.01219.11
8.2.160.0130.00722.96
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0040.00422.11
8.2.120.0080.00026.35
8.2.110.0030.00621.04
8.2.100.0000.01117.91
8.2.90.0000.00817.97
8.2.80.0030.00621.01
8.2.70.0060.00317.63
8.2.60.0060.00317.63
8.2.50.0000.00817.48
8.2.40.0040.00420.59
8.2.30.0000.00721.04
8.2.20.0000.00718.06
8.2.10.0040.00417.94
8.2.00.0040.00418.04
8.1.270.0070.00022.12
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0030.00623.86
8.1.230.0120.00020.91
8.1.220.0060.00317.74
8.1.210.0090.00018.77
8.1.200.0030.00517.23
8.1.190.0080.00017.22
8.1.180.0000.00818.10
8.1.170.0040.00418.79
8.1.160.0020.00519.08
8.1.150.0000.00718.90
8.1.140.0040.00419.59
8.1.130.0060.00318.93
8.1.120.0070.00017.46
8.1.110.0000.00717.47
8.1.100.0030.00617.47
8.1.90.0040.00417.35
8.1.80.0040.00417.50
8.1.70.0000.00717.35
8.1.60.0060.00317.54
8.1.50.0000.00717.40
8.1.40.0000.00717.34
8.1.30.0050.00517.61
8.1.20.0000.00917.68
8.1.10.0030.00517.56
8.1.00.0000.00717.33
8.0.300.0000.00820.03
8.0.290.0000.00816.63
8.0.280.0000.00718.45
8.0.270.0030.00317.21
8.0.260.0030.00316.81
8.0.250.0030.00316.92
8.0.240.0040.00416.91
8.0.230.0040.00416.97
8.0.220.0000.00716.94
8.0.210.0030.00316.85
8.0.200.0050.00316.86
8.0.190.0030.00516.96
8.0.180.0070.00016.94
8.0.170.0040.00416.77
8.0.160.0100.00016.87
8.0.150.0000.00716.94
8.0.140.0000.00716.74
8.0.130.0000.00513.36
8.0.120.0000.00716.89
8.0.110.0030.00316.79
8.0.100.0020.00516.93
8.0.90.0070.00016.71
8.0.80.0150.00016.92
8.0.70.0030.00516.75
8.0.60.0020.00516.92
8.0.50.0040.00416.76
8.0.30.0140.00517.05
8.0.20.0100.01017.40
8.0.10.0070.00017.11
8.0.00.0110.00716.76
7.4.330.0020.00215.55
7.4.320.0000.00716.49
7.4.300.0000.00716.64
7.4.290.0030.00616.54
7.4.280.0050.00316.50
7.4.270.0070.00016.58
7.4.260.0040.00416.49
7.4.250.0030.00316.55
7.4.240.0070.00016.50
7.4.230.0000.00716.34
7.4.220.0180.00316.59
7.4.210.0000.01516.58
7.4.200.0070.00016.68
7.4.160.0090.00716.42
7.4.150.0150.00917.40
7.4.140.0120.01017.86
7.4.130.0060.01616.64
7.4.120.0100.01216.57
7.4.110.0090.00916.36
7.4.100.0120.01216.31
7.4.90.0100.01016.41
7.4.80.0070.01419.39
7.4.70.0070.01016.63
7.4.60.0090.01016.34
7.4.50.0100.00316.42
7.4.40.0030.01316.39
7.4.30.0120.00916.46
7.4.10.0000.01615.00
7.4.00.0030.01314.89
7.3.330.0000.00613.29
7.3.320.0030.00313.13
7.3.310.0000.00716.20
7.3.300.0000.00716.18
7.3.290.0060.00716.37
7.3.280.0090.00616.22
7.3.270.0030.01417.40
7.3.260.0090.01116.46
7.3.250.0100.01216.25
7.3.240.0110.00816.36
7.3.230.0060.01216.54
7.3.210.0100.01316.23
7.3.200.0130.00316.38
7.3.190.0110.00516.32
7.3.180.0090.00916.27
7.3.170.0090.00616.29
7.3.160.0150.00016.26
7.3.130.0000.01514.72
7.3.120.0150.00015.03
7.3.110.0110.00714.96
7.3.100.0060.01214.44
7.3.90.0100.00314.81
7.3.80.0080.00415.07
7.3.70.0100.00714.48
7.3.60.0060.00314.55
7.3.50.0030.01014.86
7.3.40.0000.01114.71
7.3.30.0000.01414.74
7.3.20.0040.01116.56
7.3.10.0000.01116.29
7.3.00.0070.00716.65
7.2.330.0090.01316.75
7.2.320.0090.01216.34
7.2.310.0070.00916.72
7.2.300.0070.01116.70
7.2.290.0060.01116.46
7.2.260.0030.01614.80
7.2.250.0040.01415.16
7.2.240.0040.01114.94
7.2.230.0040.01114.96
7.2.220.0030.00714.84
7.2.210.0150.00315.20
7.2.200.0120.00314.84
7.2.190.0110.00015.08
7.2.180.0070.00714.89
7.2.170.0030.00714.77
7.2.160.0040.01514.85
7.2.150.0000.01516.98
7.2.140.0000.01416.82
7.2.130.0040.00816.89
7.2.120.0040.01216.99
7.2.110.0030.00916.53
7.2.100.0070.00416.46
7.2.90.0060.00316.61
7.2.80.0100.00316.70
7.2.70.0030.01016.71
7.2.60.0020.01016.87
7.2.50.0030.00916.61
7.2.40.0040.01117.06
7.2.30.0000.01516.96
7.2.20.0100.00716.83
7.2.10.0030.01016.80
7.2.00.0110.00418.02
7.1.330.0030.01015.85
7.1.320.0030.00715.94
7.1.310.0060.00915.62
7.1.300.0110.00015.81
7.1.290.0030.00915.65
7.1.280.0120.00315.72
7.1.270.0140.00415.76
7.1.260.0030.00515.58
7.1.250.0100.00315.69
7.1.240.0040.00715.60
7.1.230.0000.01415.59
7.1.220.0060.00315.59
7.1.210.0080.00615.63
7.1.200.0030.00815.68
7.1.190.0080.00615.74
7.1.180.0090.00015.85
7.1.170.0100.00315.62
7.1.160.0000.01515.57
7.1.150.0040.00415.77
7.1.140.0070.00415.79
7.1.130.0100.00315.77
7.1.120.0090.00615.79
7.1.110.0070.00715.66
7.1.100.0060.00816.88
7.1.90.0040.00715.58
7.1.80.0000.00915.62
7.1.70.0050.01116.45
7.1.60.0140.01425.27
7.1.50.0170.00725.22
7.1.40.0150.01124.95
7.1.30.0110.01724.92
7.1.20.0120.01625.21
7.1.10.0070.00716.17
7.1.00.0080.00816.20
7.0.330.0030.01015.42
7.0.320.0030.01015.07
7.0.310.0030.01015.25
7.0.300.0100.00315.38
7.0.290.0040.00815.47
7.0.280.0030.01015.47
7.0.270.0060.00615.23
7.0.260.0090.00315.24
7.0.250.0070.00715.50
7.0.240.0060.00315.10
7.0.230.0040.01115.32
7.0.220.0000.01615.31
7.0.210.0070.00715.35
7.0.200.0050.00816.14
7.0.190.0120.00616.00
7.0.180.0080.01115.90
7.0.170.0090.00715.71
7.0.160.0040.01215.71
7.0.150.0060.00815.70
7.0.140.0060.01015.83
7.0.130.0070.00815.89
7.0.120.0060.01015.95
7.0.110.0070.00615.72
7.0.100.0030.01015.80
7.0.90.0070.01015.64
7.0.80.0060.00915.65
7.0.70.0070.00915.86
7.0.60.0030.01315.69
7.0.50.0050.00915.93
7.0.40.0070.00814.82
7.0.30.0070.00915.05
7.0.20.0060.00814.96
7.0.10.0140.00314.84
7.0.00.0070.00914.91
5.6.400.0030.01014.37
5.6.390.0070.00314.24
5.6.380.0060.00914.44
5.6.370.0000.01514.01
5.6.360.0000.01514.49
5.6.350.0070.00714.29
5.6.340.0090.00614.57
5.6.330.0120.00314.13
5.6.320.0000.01314.34
5.6.310.0070.00714.24
5.6.300.0070.00714.31
5.6.290.0030.01314.53
5.6.280.0000.01014.66
5.6.270.0040.01114.52
5.6.260.0060.00314.65
5.6.250.0070.01014.29
5.6.240.0000.01014.20
5.6.230.0060.01314.41
5.6.220.0100.00714.39
5.6.210.0040.00714.47
5.6.200.0100.00314.62
5.6.190.0030.01014.18
5.6.180.0120.00314.39
5.6.170.0060.00814.18
5.6.160.0000.01314.33
5.6.150.0090.00614.44
5.6.140.0070.00414.49
5.6.130.0100.00714.26
5.6.120.0060.00614.35
5.6.110.0030.01014.31
5.6.100.0100.00314.16
5.6.90.0110.00614.46
5.6.80.0090.00314.08
5.6.70.0070.00714.49
5.6.60.0030.00614.23
5.6.50.0070.00714.29
5.6.40.0040.01213.98
5.6.30.0060.00914.27
5.6.20.0040.01214.39
5.6.10.0080.00414.00
5.6.00.0000.01414.25

preferences:
52.59 ms | 400 KiB | 5 Q