3v4l.org

run code in 300+ PHP versions simultaneously
<?php session_set_save_handler( function() {return true;}, function() {return true;}, function() {return true;}, function() {return true;}, function() { $contents = ob_get_contents(); ob_end_clean(); print substr($contents, 0, 5); print ' PHP '; print substr($contents, 5); return true; }, function(){return true;} ); session_start(); ob_start(); echo 'Hello'; echo 'World'; session_destroy();

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.00716.63
8.3.50.0130.00317.92
8.3.40.0090.00618.67
8.3.30.0040.01218.70
8.3.20.0040.00421.95
8.3.10.0000.00821.76
8.3.00.0000.00821.86
8.2.180.0100.00616.50
8.2.170.0140.00722.96
8.2.160.0080.00622.11
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0040.00419.21
8.2.120.0070.00026.35
8.2.110.0100.00021.02
8.2.100.0080.00417.84
8.2.90.0040.00419.07
8.2.80.0060.00317.97
8.2.70.0040.00417.50
8.2.60.0090.00017.90
8.2.50.0000.00718.10
8.2.40.0030.00620.47
8.2.30.0060.00319.38
8.2.20.0040.00418.13
8.2.10.0080.00018.00
8.2.00.0040.00418.26
8.1.280.0070.00725.92
8.1.270.0040.00422.19
8.1.260.0080.00026.35
8.1.250.0050.00328.09
8.1.240.0060.00322.87
8.1.230.0060.00617.77
8.1.220.0030.00517.74
8.1.210.0050.00318.77
8.1.200.0060.00317.23
8.1.190.0040.00417.23
8.1.180.0000.00818.10
8.1.170.0000.00818.59
8.1.160.0040.00418.82
8.1.150.0000.00718.90
8.1.140.0030.00319.10
8.1.130.0030.00317.75
8.1.120.0050.00317.42
8.1.110.0000.00817.45
8.1.100.0000.00817.42
8.1.90.0030.00517.30
8.1.80.0040.00317.43
8.1.70.0000.00717.31
8.1.60.0080.00017.58
8.1.50.0080.00017.41
8.1.40.0000.00817.48
8.1.30.0040.00417.48
8.1.20.0070.00017.56
8.1.10.0070.00017.52
8.1.00.0030.00517.26
8.0.300.0050.00218.77
8.0.290.0080.00016.63
8.0.280.0070.00018.40
8.0.270.0000.00717.16
8.0.260.0040.00417.26
8.0.250.0030.00316.88
8.0.240.0070.00016.88
8.0.230.0000.00716.84
8.0.220.0070.00016.86
8.0.210.0070.00016.83
8.0.200.0000.00616.93
8.0.190.0040.00416.93
8.0.180.0000.00716.85
8.0.170.0040.00416.94
8.0.160.0050.00316.98
8.0.150.0060.00316.82
8.0.140.0050.00316.89
8.0.130.0000.00613.31
8.0.120.0040.00416.77
8.0.110.0070.00016.91
8.0.100.0040.00416.87
8.0.90.0000.00816.78
8.0.80.0040.01116.93
8.0.70.0040.00416.78
8.0.60.0000.00816.93
8.0.50.0050.00216.86
8.0.30.0060.01316.94
8.0.20.0110.01117.40
8.0.10.0000.00717.03
8.0.00.0140.00416.71
7.4.330.0000.00515.55
7.4.320.0000.00616.47
7.4.300.0060.00016.47
7.4.290.0030.00316.36
7.4.280.0000.00816.48
7.4.270.0000.00816.51
7.4.260.0000.00616.46
7.4.250.0070.00016.41
7.4.240.0000.00716.41
7.4.230.0000.00716.36
7.4.220.0030.00316.63
7.4.210.0060.00816.53
7.4.200.0000.00816.49
7.4.160.0090.00916.45
7.4.150.0040.01417.40
7.4.140.0110.01017.86
7.4.130.0060.01816.32
7.4.120.0140.00816.45
7.4.110.0140.00316.49
7.4.100.0070.01016.59
7.4.90.0160.00716.50
7.4.80.0040.01719.39
7.4.70.0110.00916.29
7.4.60.0080.00816.61
7.4.50.0140.00416.49
7.4.40.0060.01516.39
7.4.00.0080.00815.08
7.3.330.0000.00513.14
7.3.320.0030.00313.30
7.3.310.0030.00316.27
7.3.300.0060.00016.24
7.3.290.0030.00316.32
7.3.280.0090.00816.29
7.3.270.0140.00717.40
7.3.260.0110.00716.37
7.3.250.0100.00916.36
7.3.240.0080.01116.55
7.3.230.0090.00616.60
7.3.210.0040.01216.57
7.3.200.0090.00616.40
7.3.190.0110.00716.29
7.3.180.0150.00616.43
7.3.170.0080.00916.46
7.3.160.0130.00316.42
7.3.120.0030.00914.76
7.3.110.0120.00014.97
7.3.100.0050.00514.72
7.3.90.0100.00314.86
7.3.80.0030.00915.01
7.3.70.0080.00614.59
7.3.60.0000.01414.67
7.3.50.0000.01614.87
7.3.40.0040.01114.54
7.3.30.0030.00914.42
7.3.20.0040.00416.64
7.3.10.0050.00816.86
7.3.00.0050.01016.49
7.2.330.0090.00916.55
7.2.320.0030.01516.59
7.2.310.0090.00916.34
7.2.300.0100.00616.66
7.2.290.0140.00316.32
7.2.250.0060.01315.05
7.2.240.0090.00914.93
7.2.230.0030.01315.19
7.2.220.0080.00614.70
7.2.210.0060.00314.70
7.2.200.0030.01014.98
7.2.190.0040.01115.05
7.2.180.0000.01314.83
7.2.170.0090.00614.79
7.2.130.0040.00716.71
7.2.120.0030.00916.73
7.2.110.0040.00816.65
7.2.100.0100.00316.99
7.2.90.0110.00417.04
7.2.80.0000.01416.80
7.2.70.0060.00616.88
7.2.60.0050.00816.86
7.2.50.0080.00316.77
7.2.40.0000.01516.71
7.2.30.0030.01316.94
7.2.20.0000.00916.96
7.2.10.0000.01416.93
7.2.00.0050.01118.24
7.1.330.0090.00615.81
7.1.320.0060.00915.71
7.1.310.0060.00315.52
7.1.300.0000.01415.25
7.1.290.0040.01115.71
7.1.280.0030.01015.77
7.1.270.0060.00915.66
7.1.260.0070.00715.73
7.1.250.0000.00815.50
7.1.200.0050.00815.66
7.1.120.0060.00618.51
7.1.110.0140.00018.02
7.1.100.0140.00317.96
7.1.90.0070.00718.12
7.1.80.0000.01217.60
7.1.70.0030.00917.08
7.1.60.0170.00735.06
7.1.50.0190.00634.75
7.1.40.0200.00834.32
7.1.30.0250.00334.38
7.1.20.0150.00934.35
7.1.10.0090.00316.38
7.1.00.0030.01016.57

preferences:
63.86 ms | 400 KiB | 5 Q