3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public function __construct() { session_start(); $_SESSION['construct'] = true; var_dump($_SESSION); echo "constructor<br/>"; register_shutdown_function(function() { $_SESSION['shutdown'] = true; unset($_SESSION['construct']); echo "shutdown<br/>"; }); } public function __destruct() { session_write_close(); echo "destructor<br/>"; } } $test = 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.40.0120.00318.76
8.3.30.0070.00719.17
8.3.20.0040.00420.34
8.3.10.0040.00423.79
8.3.00.0050.00321.02
8.2.170.0040.01122.96
8.2.160.0120.00318.96
8.2.150.0000.00824.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0040.00419.48
8.2.110.0040.00422.24
8.2.100.0040.00720.39
8.2.90.0000.00919.34
8.2.80.0050.00317.97
8.2.70.0100.00017.50
8.2.60.0000.00818.05
8.2.50.0040.00418.07
8.2.40.0040.00718.34
8.2.30.0060.00318.40
8.2.20.0080.00017.82
8.2.10.0000.00818.08
8.2.00.0060.00319.64
8.1.270.0040.00424.00
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0000.00922.24
8.1.230.0080.00319.09
8.1.220.0040.00417.79
8.1.210.0070.00418.77
8.1.200.0000.01017.48
8.1.190.0000.00817.13
8.1.180.0030.00618.10
8.1.170.0000.00818.62
8.1.160.0030.00522.09
8.1.150.0040.00418.72
8.1.140.0000.00817.45
8.1.130.0000.00817.77
8.1.120.0030.00417.50
8.1.110.0040.00417.49
8.1.100.0040.00417.43
8.1.90.0000.00717.54
8.1.80.0000.00717.39
8.1.70.0040.00417.42
8.1.60.0030.00617.50
8.1.50.0040.00417.45
8.1.40.0050.00317.44
8.1.30.0080.00017.52
8.1.20.0040.00417.76
8.1.10.0080.00017.53
8.1.00.0000.00817.41
8.0.300.0050.00218.77
8.0.290.0070.00016.58
8.0.280.0040.00418.40
8.0.270.0000.00817.34
8.0.260.0030.00317.34
8.0.250.0000.00716.93
8.0.240.0070.00016.99
8.0.230.0070.00016.93
8.0.220.0000.00716.90
8.0.210.0000.00716.96
8.0.200.0000.00616.93
8.0.190.0030.00316.90
8.0.180.0080.00316.94
8.0.170.0040.00416.84
8.0.160.0030.00417.01
8.0.150.0340.00716.87
8.0.140.0000.00716.79
8.0.130.0000.00613.34
8.0.120.0040.00416.89
8.0.110.0090.00016.88
8.0.100.0000.00716.93
8.0.90.0070.00016.89
8.0.80.0160.00016.89
8.0.70.0000.00816.76
8.0.60.0040.00416.74
8.0.50.0000.00716.78
8.0.30.0160.00317.13
8.0.20.0080.01417.40
8.0.10.0040.00416.97
8.0.00.0050.01416.77
7.4.330.0030.00315.16
7.4.320.0070.00016.53
7.4.300.0060.00016.58
7.4.290.0030.00316.61
7.4.280.0070.00316.66
7.4.270.0000.00716.66
7.4.260.0070.00016.59
7.4.250.0000.00716.51
7.4.240.0020.00516.57
7.4.230.0030.00316.27
7.4.220.0090.00916.64
7.4.210.0060.00916.73
7.4.200.0030.00316.44
7.4.160.0100.00616.32
7.4.150.0120.00617.40
7.4.140.0110.00717.86
7.4.130.0080.01016.48
7.4.120.0100.00716.56
7.4.110.0110.01116.48
7.4.100.0130.01016.43
7.4.90.0100.00716.40
7.4.80.0070.01119.39
7.4.70.0130.00316.42
7.4.60.0040.01416.46
7.4.50.0020.00516.52
7.4.40.0080.00816.70
7.4.30.0120.00316.53
7.4.10.0070.01315.20
7.4.00.0110.00815.00
7.3.330.0000.00513.20
7.3.320.0050.00013.21
7.3.310.0000.00716.39
7.3.300.0030.00316.43
7.3.290.0130.00416.38
7.3.280.0100.00916.40
7.3.270.0150.00617.40
7.3.260.0060.01216.64
7.3.250.0140.00916.45
7.3.240.0120.00616.38
7.3.230.0130.00316.55
7.3.210.0110.00816.53
7.3.200.0140.00419.39
7.3.190.0000.01716.55
7.3.180.0100.00616.33
7.3.170.0040.01416.41
7.3.160.0100.00716.48
7.3.130.0060.01314.78
7.3.120.0040.01215.04
7.3.110.0100.00514.83
7.3.100.0090.00814.80
7.3.90.0060.01115.01
7.3.80.0030.00814.91
7.3.70.0050.01014.83
7.3.60.0090.00714.74
7.3.50.0080.00314.68
7.3.40.0040.01014.69
7.3.30.0090.00414.74
7.3.20.0030.01116.42
7.3.10.0080.00516.68
7.3.00.0040.01016.60
7.2.330.0110.00716.82
7.2.320.0100.00716.39
7.2.310.0140.00316.87
7.2.300.0130.01016.85
7.2.290.0030.01816.64
7.2.260.0150.00415.27
7.2.250.0090.00915.20
7.2.240.0050.01015.01
7.2.230.0070.00715.04
7.2.220.0070.00915.12
7.2.210.0110.00515.27
7.2.200.0090.00614.94
7.2.190.0030.01215.00
7.2.180.0020.00915.09
7.2.170.0060.00615.10
7.2.160.0020.01215.07
7.2.150.0060.00616.87
7.2.140.0040.01116.94
7.2.130.0090.00616.92
7.2.120.0070.00616.96
7.2.110.0060.01016.97
7.2.100.0060.00717.06
7.2.90.0050.00916.99
7.2.80.0040.00816.91
7.2.70.0060.00716.86
7.2.60.0030.01016.79
7.2.50.0060.00716.99
7.2.40.0080.00716.99
7.2.30.0050.00716.99
7.2.20.0050.00816.82
7.2.10.0070.00716.84
7.2.00.0050.00717.42
7.1.330.0080.00815.86
7.1.320.0030.00815.65
7.1.310.0060.00815.69
7.1.300.0030.01015.79
7.1.290.0080.00515.58
7.1.280.0020.01215.74
7.1.270.0060.00515.90
7.1.260.0040.01015.84
7.1.250.0060.00915.72
7.1.240.0060.00815.67
7.1.230.0020.01115.87
7.1.220.0100.00515.94
7.1.210.0060.00415.77
7.1.200.0050.00815.71
7.1.190.0030.00915.69
7.1.180.0050.00715.83
7.1.170.0060.00415.69
7.1.160.0040.00615.72
7.1.150.0070.00615.77
7.1.140.0040.01115.77
7.1.130.0020.00915.83
7.1.120.0070.00715.74
7.1.110.0080.00615.79
7.1.100.0080.00916.53
7.1.90.0030.01015.77
7.1.80.0090.00715.79
7.1.70.0030.00816.34
7.1.60.0080.00617.09
7.1.50.0100.00516.10
7.1.40.0070.00815.81
7.1.30.0020.01115.81
7.1.20.0060.00715.64
7.1.10.0030.00815.88
7.1.00.0050.03217.90
7.0.330.0040.00615.48
7.0.320.0080.00615.36
7.0.310.0080.00515.26
7.0.300.0070.00515.45
7.0.290.0050.00615.50
7.0.280.0090.00515.37
7.0.270.0080.00215.41
7.0.260.0030.01215.33
7.0.250.0000.01415.49
7.0.240.0020.01315.44
7.0.230.0090.00415.35
7.0.220.0000.01215.28
7.0.210.0040.00915.54
7.0.200.0010.01015.88
7.0.190.0040.00915.44
7.0.180.0040.00615.27
7.0.170.0050.00715.40
7.0.160.0070.00915.43
7.0.150.0020.00915.48
7.0.140.0080.02717.66
7.0.130.0080.00815.53
7.0.120.0120.00215.43
7.0.110.0070.01015.53
7.0.100.0020.01215.36
7.0.90.0030.01015.36
7.0.80.0070.00415.44
7.0.70.0050.01215.59
7.0.60.0120.02516.97
7.0.50.0080.02916.15
7.0.40.0070.01715.77
7.0.30.0100.01815.65
7.0.20.0110.02215.62
7.0.10.0140.03015.84
7.0.00.0030.03515.73
5.6.400.0030.01014.61
5.6.390.0060.00714.40
5.6.380.0060.00614.46
5.6.370.0050.00714.50
5.6.360.0000.01114.46
5.6.350.0060.00614.57
5.6.340.0080.00614.50
5.6.330.0070.00414.58
5.6.320.0050.01014.70
5.6.310.0030.00614.50
5.6.300.0040.01114.24
5.6.290.0100.00314.52
5.6.280.0110.02416.79
5.6.270.0100.00714.67
5.6.260.0030.01114.57
5.6.250.0050.00814.76
5.6.240.0090.00314.54
5.6.230.0040.00614.44
5.6.220.0120.00314.28
5.6.210.0060.01916.38
5.6.200.0060.03215.65
5.6.190.0060.03316.60
5.6.180.0070.02016.45
5.6.170.0130.03216.54
5.6.160.0080.02816.55
5.6.150.0050.03315.61
5.6.140.0050.01715.77
5.6.130.0040.03315.62
5.6.120.0040.01916.77
5.6.110.0050.03316.59
5.6.100.0160.02116.57
5.6.90.0030.03416.79
5.6.80.0080.03016.28
5.6.70.0020.01014.40
5.6.60.0050.00614.34
5.6.50.0010.00814.42
5.6.40.0050.00914.53
5.6.30.0030.01014.41
5.6.20.0080.00514.37
5.6.10.0020.01114.26
5.6.00.0080.00314.35
5.5.380.0080.00314.45
5.5.370.0060.00614.35
5.5.360.0070.01014.30
5.5.350.0050.01716.37
5.5.340.0080.03115.53
5.5.330.0040.03416.45
5.5.320.0140.01616.35
5.5.310.0150.02816.44
5.5.300.0030.02615.50
5.5.290.0070.01415.61
5.5.280.0020.02216.55
5.5.270.0050.01716.59
5.5.260.0060.02616.54
5.5.250.0070.03316.52
5.5.240.0160.02616.25
5.5.230.0060.00614.17
5.5.220.0040.00914.03
5.5.210.0100.00514.04
5.5.200.0030.01113.97
5.5.190.0070.00314.31
5.5.180.0030.01014.15
5.5.170.0070.00814.25
5.5.160.0070.00814.25
5.5.150.0030.00814.39
5.5.140.0080.00814.36
5.5.130.0020.01214.44
5.5.120.0070.00514.35
5.5.110.0100.00314.41
5.5.100.0060.00714.32
5.5.90.0080.00613.95
5.5.80.0080.00814.26
5.5.70.0070.01114.20
5.5.60.0070.00714.43
5.5.50.0040.01114.12
5.5.40.0080.00513.86
5.5.30.0080.00514.24
5.5.20.0090.00614.22
5.5.10.0060.00514.43
5.5.00.0070.00514.22
5.4.450.0100.01814.61
5.4.440.0130.01614.55
5.4.430.0140.02814.59
5.4.420.0100.02914.62
5.4.410.0100.02014.61
5.4.400.0120.02014.50
5.4.390.0100.02814.51
5.4.380.0150.01814.57
5.4.370.0150.02514.59
5.4.360.0100.02314.50
5.4.350.0110.02914.54
5.4.340.0160.02614.54
5.4.330.0030.00712.20
5.4.320.0170.01914.49
5.4.310.0170.02614.51
5.4.300.0120.02914.42
5.4.290.0110.03014.51
5.4.280.0110.02814.46
5.4.270.0100.02314.49
5.4.260.0130.02614.54
5.4.250.0180.02314.49
5.4.240.0140.02714.43
5.4.230.0110.01814.41
5.4.220.0120.01914.46
5.4.210.0130.02114.45
5.4.200.0100.03014.54
5.4.190.0120.03114.54
5.4.180.0110.01514.54
5.4.170.0120.02914.41
5.4.160.0140.02414.51
5.4.150.0130.01814.42
5.4.140.0130.01313.59
5.4.130.0140.02613.65
5.4.120.0200.02013.61
5.4.110.0130.02613.67
5.4.100.0170.02413.66
5.4.90.0150.02213.67
5.4.80.0110.01713.61
5.4.70.0120.02713.65
5.4.60.0080.02213.61
5.4.50.0070.02113.55
5.4.40.0140.02413.61
5.4.30.0100.02113.64
5.4.20.0110.02013.64
5.4.10.0090.01513.63
5.4.00.0110.01413.42
5.3.290.0110.02513.05
5.3.280.0130.02213.01
5.3.270.0120.02713.06
5.3.260.0080.01912.97
5.3.250.0110.01513.03
5.3.240.0110.02713.02
5.3.230.0140.02612.99
5.3.220.0150.02013.03
5.3.210.0170.02512.96
5.3.200.0140.02612.99
5.3.190.0100.01913.06
5.3.180.0100.02213.02
5.3.170.0110.01713.06
5.3.160.0130.02412.96
5.3.150.0110.02512.99
5.3.140.0090.01913.00
5.3.130.0110.01812.98
5.3.120.0150.02112.98
5.3.110.0100.02112.99
5.3.100.0100.02912.89
5.3.90.0090.01612.81
5.3.80.0080.01812.81
5.3.70.0030.01912.85
5.3.60.0090.01812.83
5.3.50.0120.01712.81
5.3.40.0110.02512.76
5.3.30.0130.02212.74
5.3.20.0110.01412.75
5.3.10.0110.02412.66
5.3.00.0160.02412.65
5.2.170.0200.03012.53
5.2.160.0200.03012.53
5.2.150.0200.06012.53
5.2.140.0130.06012.53
5.2.130.0230.05712.53
5.2.120.0230.05312.53
5.2.110.0170.07012.53
5.2.100.0270.03712.53
5.2.90.0270.04712.53
5.2.80.0200.05012.53
5.2.70.0330.03012.53
5.2.60.0200.03712.53
5.2.50.0230.03312.53
5.2.40.0170.03012.53
5.2.30.0170.03012.53
5.2.20.0230.05312.53
5.2.10.0170.04012.53
5.2.00.0300.05012.53
5.1.60.0130.05012.53
5.1.50.0170.03312.53
5.1.40.0230.03712.53
5.1.30.0170.06312.53
5.1.20.0370.04012.53
5.1.10.0200.05312.53
5.1.00.0270.05012.53
5.0.50.0130.03712.53
5.0.40.0100.02712.53
5.0.30.0130.04312.53
5.0.20.0130.04312.53
5.0.10.0170.03312.53
5.0.00.0100.04312.53
4.4.90.0170.01012.53
4.4.80.0070.02312.53
4.4.70.0170.02312.53
4.4.60.0070.03012.53
4.4.50.0100.03312.53
4.4.40.0130.03312.53
4.4.30.0100.02012.53
4.4.20.0170.02312.53
4.4.10.0100.03712.53
4.4.00.0100.05712.53
4.3.110.0200.02012.53
4.3.100.0100.02712.53
4.3.90.0170.03012.53
4.3.80.0100.04312.53
4.3.70.0130.03312.53
4.3.60.0100.03712.53
4.3.50.0130.03012.53
4.3.40.0070.03712.53
4.3.30.0100.02712.53
4.3.20.0070.03012.53
4.3.10.0170.02712.53
4.3.00.0100.03312.53

preferences:
50.14 ms | 400 KiB | 5 Q