3v4l.org

run code in 300+ PHP versions simultaneously
<?php function output_html($ext) { return strlen($ext); } function open ($save_path, $session_name) { return true; } function close() { return true; } function read ($id) { } function write ($id, $sess_data) { ob_start("output_html"); echo "laruence"; ob_end_flush(); return true; } function destroy ($id) { } function gc ($maxlifetime) { return true; } session_set_save_handler ("open", "close", "read", "write", "destroy", "gc"); 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.70.0110.01116.48
8.3.60.0130.00718.42
8.3.50.0090.00922.05
8.3.40.0190.00321.68
8.3.30.0150.00020.79
8.2.180.0070.01116.46
8.2.170.0120.00920.75
8.2.160.0090.00622.00
8.1.280.0070.01325.92
7.4.10.0080.01815.75
7.4.00.0090.00915.43
7.3.130.0130.01115.41
7.3.120.0090.01115.21
7.3.110.0120.01015.39
7.3.100.0120.00915.48
7.3.90.0090.01115.58
7.3.80.0140.00515.38
7.3.70.0080.01315.35
7.3.60.0170.00515.57
7.3.50.0120.01015.44
7.3.40.0140.00415.42
7.3.30.0180.00415.41
7.3.20.0150.00617.33
7.3.10.0140.00717.30
7.3.00.0200.00617.09
7.2.260.0100.01315.60
7.2.250.0150.00615.71
7.2.240.0090.01315.71
7.2.230.0120.00715.41
7.2.220.0140.01015.59
7.2.210.0110.00915.51
7.2.200.0120.00715.60
7.2.190.0110.01315.44
7.2.180.0130.01015.45
7.2.170.0110.01115.61
7.2.160.0150.00715.37
7.2.150.0080.01117.35
7.2.140.0150.00817.55
7.2.130.0110.01017.45
7.2.120.0100.01117.51
7.2.110.0110.00617.27
7.2.100.0080.01417.33
7.2.90.0130.01017.46
7.2.80.0130.00414.91
7.2.70.0140.00415.02
7.2.60.0090.00615.60
7.2.50.0130.01217.59
7.2.40.0140.01117.46
7.2.30.0120.01017.50
7.2.20.0100.01217.39
7.2.10.0140.00617.56
7.2.00.0060.01017.88
7.1.330.0060.01416.49
7.1.320.0170.00616.42
7.1.310.0110.00816.53
7.1.300.0120.00916.47
7.1.290.0090.01016.33
7.1.280.0100.00916.37
7.1.270.0080.01116.40
7.1.260.0140.00716.49
7.1.250.0110.00916.46
7.1.240.0080.01116.37
7.1.230.0060.01016.43
7.1.220.0120.00916.35
7.1.210.0100.01016.32
7.1.200.0110.00816.11
7.1.190.0070.01416.28
7.1.180.0110.00916.21
7.1.170.0090.01116.52
7.1.160.0150.00716.44
7.1.150.0110.01016.41
7.1.140.0140.00816.45
7.1.130.0120.00816.40
7.1.120.0090.00916.34
7.1.110.0110.00916.45
7.1.100.0090.00817.04
7.1.90.0110.01016.58
7.1.80.0130.00816.51
7.1.70.0060.01016.50
7.1.60.0060.01117.45
7.1.50.0080.00916.55
7.1.40.0080.00816.38
7.1.30.0120.00616.41
7.1.20.0100.00516.38
7.1.10.0080.00616.49
7.1.00.0080.02918.46
7.0.330.0100.00816.05
7.0.320.0120.00415.99
7.0.310.0090.00814.04
7.0.300.0060.01114.18
7.0.290.0140.00816.06
7.0.280.0120.00916.13
7.0.270.0130.00716.17
7.0.260.0090.01016.09
7.0.250.0110.00815.98
7.0.240.0120.00616.19
7.0.230.0090.01116.16
7.0.220.0080.01216.17
7.0.210.0120.00616.21
7.0.200.0090.00816.28
7.0.190.0060.01014.11
7.0.180.0080.01014.07
7.0.170.0090.00916.09
7.0.160.0150.00514.17
7.0.150.0210.00616.10
7.0.140.0130.02618.17
7.0.130.0100.00916.20
7.0.120.0110.00916.16
7.0.110.0090.01016.16
7.0.100.0070.01016.15
7.0.90.0080.01316.23
7.0.80.0070.01216.14
7.0.70.0120.02317.97
7.0.60.0100.03117.96
7.0.50.0050.03616.81
7.0.40.0070.01915.44
7.0.30.0070.03416.10
7.0.20.0080.03516.20
7.0.10.0060.03515.48
7.0.00.0090.03416.14
5.6.400.0120.01015.07
5.6.390.0100.00513.43
5.6.380.0070.01213.36
5.6.370.0140.00815.10
5.6.360.0120.00915.13
5.6.350.0140.00514.97
5.6.340.0080.01415.02
5.6.330.0130.00915.00
5.6.320.0180.00414.82
5.6.310.0060.01013.70
5.6.300.0060.00713.68
5.6.290.0130.00714.73
5.6.280.0080.02917.12
5.6.270.0080.00613.57
5.6.260.0110.00813.71
5.6.250.0060.00913.77
5.6.240.0160.00514.94
5.6.230.0100.01214.91
5.6.220.0110.02216.72
5.6.210.0090.02116.84
5.6.200.0100.02416.95
5.6.190.0100.03117.09
5.6.180.0050.02716.92
5.6.170.0070.02617.02
5.6.160.0100.02516.08
5.6.150.0100.02717.11
5.6.140.0110.03016.15
5.6.130.0090.02717.05
5.6.120.0100.02317.02
5.6.110.0120.03116.91
5.6.100.0090.02516.95
5.6.90.0100.02916.03
5.6.80.0120.02616.72
5.6.70.0090.02816.86
5.6.60.0080.02615.89
5.6.50.0070.02415.88
5.6.40.0130.02716.74
5.6.30.0100.02916.77
5.6.20.0100.02716.78
5.6.10.0100.03216.62
5.6.00.0110.02615.82
5.5.380.0070.01414.99
5.5.370.0090.01215.06
5.5.360.0080.03215.96
5.5.350.0070.03316.72
5.5.340.0120.03117.00
5.5.330.0110.01916.86
5.5.320.0060.03516.85
5.5.310.0110.02216.87
5.5.300.0090.03416.86
5.5.290.0060.03617.04
5.5.280.0130.02916.95
5.5.270.0050.02516.87
5.5.260.0120.02316.95
5.5.250.0150.03016.81
5.5.240.0110.02516.63
5.5.230.0070.03616.52
5.5.220.0060.03016.69
5.5.210.0070.02516.59
5.5.200.0070.03116.56
5.5.190.0070.02515.70
5.5.180.0130.02816.69
5.5.170.0100.00914.77
5.5.160.0100.02116.70
5.5.150.0120.02516.56
5.5.140.0090.02816.70
5.5.130.0090.03016.54
5.5.120.0060.02616.66
5.5.110.0090.01916.55
5.5.100.0060.02216.42
5.5.90.0060.03316.63
5.5.80.0080.03516.67
5.5.70.0060.03216.47
5.5.60.0120.02716.52
5.5.50.0100.03216.69
5.5.40.0080.02216.63
5.5.30.0100.03216.56
5.5.20.0060.03316.46
5.5.10.0060.03216.43
5.5.00.0100.03116.48
5.4.450.0070.02714.43
5.4.440.0050.02114.36
5.4.430.0050.02514.51
5.4.420.0070.03014.42
5.4.410.0090.02914.31
5.4.400.0080.02414.38
5.4.390.0070.02514.31
5.4.380.0080.02914.34
5.4.370.0050.02314.40
5.4.360.0060.03114.33
5.4.350.0080.02814.32
5.4.340.0070.03014.33
5.4.330.0090.00411.88
5.4.320.0040.02114.36
5.4.310.0060.02514.30
5.4.300.0050.03014.33
5.4.290.0090.02614.35
5.4.280.0090.02914.29
5.4.270.0090.01714.32
5.4.260.0100.01314.29
5.4.250.0060.02014.32
5.4.240.0050.02614.30
5.4.230.0060.02914.29
5.4.220.0070.03214.37
5.4.210.0050.03114.39
5.4.200.0130.02314.36
5.4.190.0060.03214.31
5.4.180.0060.02914.34
5.4.170.0070.02314.30
5.4.160.0100.02514.33
5.4.150.0120.02514.35
5.4.140.0060.02713.30
5.4.130.0070.02713.54
5.4.120.0130.02013.43
5.4.110.0080.02813.46
5.4.100.0060.02913.49
5.4.90.0040.02513.50
5.4.80.0080.02713.46
5.4.70.0040.02813.49
5.4.60.0040.02513.45
5.4.50.0080.03013.45
5.4.40.0060.03113.55
5.4.30.0080.02713.48
5.4.20.0040.03013.40
5.4.10.0060.02713.43
5.4.00.0020.02413.19
5.3.290.0050.01812.78
5.3.280.0060.03112.68
5.3.270.0050.02412.72
5.3.260.0070.02212.71
5.3.250.0040.03412.70
5.3.240.0080.03012.70
5.3.230.0100.02512.61
5.3.220.0080.02212.57
5.3.210.0070.02312.67
5.3.200.0090.02712.58
5.3.190.0050.02412.56
5.3.180.0060.02912.59
5.3.170.0070.02312.57
5.3.160.0070.03012.70
5.3.150.0070.03012.71
5.3.140.0040.03112.70
5.3.130.0070.02612.59
5.3.120.0060.02812.61
5.3.110.0090.02212.68
5.3.100.0060.03012.48
5.3.90.0070.03012.53
5.3.80.0070.02312.37
5.3.70.0060.02612.37
5.3.60.0100.02212.51
5.3.50.0040.02312.50
5.3.40.0080.02712.50
5.3.30.0070.02812.50
5.3.20.0070.02212.41
5.3.10.0040.03112.29
5.3.00.0040.02912.24
5.2.170.0030.04312.43
5.2.160.0070.06012.43
5.2.150.0170.05012.43
5.2.140.0030.06712.43
5.2.130.0070.03712.43
5.2.120.0000.06712.43
5.2.110.0000.06312.43
5.2.100.0070.05712.43
5.2.90.0030.05012.43
5.2.80.0000.07012.43
5.2.70.0000.06012.43
5.2.60.0030.06712.43
5.2.50.0070.06012.43
5.2.40.0030.05312.43
5.2.30.0030.05312.43
5.2.20.0030.04712.43
5.2.10.0000.05312.43
5.2.00.0000.06312.43
5.1.60.0030.03712.43
5.1.50.0070.02712.43
5.1.40.0070.05012.43
5.1.30.0070.05312.43
5.1.20.0000.05012.43
5.1.10.0030.05312.43
5.1.00.0030.05312.43
5.0.50.0030.04712.43
5.0.40.0070.02712.43
5.0.30.0070.06012.43
5.0.20.0030.03712.43
5.0.10.0000.04712.43
5.0.00.0000.05712.43
4.4.90.0030.03712.43
4.4.80.0070.03012.43
4.4.70.0030.03712.43
4.4.60.0000.03312.43
4.4.50.0000.03712.43
4.4.40.0030.04712.43
4.4.30.0000.03712.43
4.4.20.0000.02012.43
4.4.10.0000.03712.43
4.4.00.0000.05012.43
4.3.110.0030.03312.43
4.3.100.0030.03312.43
4.3.90.0000.02712.43
4.3.80.0000.03712.43
4.3.70.0000.03712.43
4.3.60.0030.03312.43
4.3.50.0030.03312.43
4.3.40.0000.05312.43
4.3.30.0030.03712.43
4.3.20.0000.03712.43
4.3.10.0000.03312.43
4.3.00.0000.03712.43

preferences:
45.22 ms | 401 KiB | 5 Q