3v4l.org

run code in 300+ PHP versions simultaneously
<?php $key1 = 'TEST1'; $key2 = 'TEST2'; $value = 'true'; $preparedValue = true; putenv("{$key1}={$preparedValue}"); putenv("{$key2}={$value}"); var_dump(getenv($key1)); var_dump(getenv($key2));

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.5.00.0100.01119.75
8.4.150.0020.00014.05
8.4.140.0120.00817.53
8.4.130.0100.00217.72
8.4.120.0050.00520.27
8.4.110.0060.00418.79
8.4.100.0080.01017.61
8.4.90.0130.00917.63
8.4.80.0080.00420.41
8.4.70.0100.01117.50
8.4.60.0100.01017.50
8.4.50.0100.01219.49
8.4.40.0100.01017.54
8.4.30.0190.00020.81
8.4.20.0000.01919.57
8.4.10.0060.00319.46
8.3.280.0020.00014.05
8.3.270.0090.01016.35
8.3.260.0120.00716.64
8.3.250.0130.00618.79
8.3.240.0130.00718.16
8.3.230.0040.00516.38
8.3.220.0050.00317.07
8.3.210.0100.01016.48
8.3.200.0110.00816.36
8.3.190.0080.01118.41
8.3.180.0060.00418.33
8.3.170.0120.00620.70
8.3.160.0140.00317.21
8.3.150.0140.00417.16
8.3.140.0070.00016.41
8.3.130.0130.00316.25
8.3.120.0060.00320.84
8.3.110.0080.00818.15
8.3.100.0060.00316.62
8.3.90.0080.00026.77
8.3.80.0040.00418.04
8.3.70.0000.01418.30
8.3.60.0120.00618.25
8.3.50.0060.00916.42
8.3.40.0160.00023.66
8.3.30.0210.01122.96
8.3.20.0120.00723.44
8.3.10.0070.01223.67
8.3.00.0080.01322.96
8.2.290.0140.00420.32
8.2.280.0050.00518.47
8.2.270.0100.00716.98
8.2.260.0150.00316.69
8.2.250.0040.00418.25
8.2.240.0160.00316.85
8.2.230.0060.00320.94
8.2.220.0080.00024.06
8.2.210.0040.00426.77
8.2.200.0030.00618.16
8.2.190.0150.00616.58
8.2.180.0090.00618.16
8.2.170.0040.01122.96
8.2.160.0210.00522.96
8.2.150.0140.00722.96
8.2.140.0120.00622.96
8.2.130.0110.00922.96
8.2.120.0090.00922.96
8.2.110.0100.00822.96
8.2.100.0180.00322.96
8.2.90.0140.01222.96
8.2.80.0120.01022.96
8.2.70.0180.00822.96
8.2.60.0170.00722.96
8.2.50.0210.00322.96
8.2.40.0110.01122.96
8.2.30.0120.00922.96
8.2.20.0190.00722.96
8.2.10.0110.01122.96
8.2.00.0130.00822.96
8.1.330.0060.00216.53
8.1.320.0090.00915.82
8.1.310.0040.00416.82
8.1.300.0120.00618.46
8.1.290.0060.00630.84
8.1.280.0090.00625.92
8.1.270.0100.00723.81
8.1.260.0070.00923.85
8.1.250.0130.00723.86
8.1.240.0170.00822.96
8.1.230.0100.00922.96
8.1.220.0100.01322.96
8.1.210.0190.00522.96
8.1.200.0140.00622.96
8.1.190.0130.00622.96
8.1.180.0060.01522.96
8.1.170.0130.00722.96
8.1.160.0190.00722.96
8.1.150.0180.00122.96
8.1.140.0110.00922.96
8.1.130.0110.00722.96
8.1.120.0160.00322.96
8.1.110.0120.00922.96
8.1.100.0100.00722.96
8.1.90.0120.00722.96
8.1.80.0200.00222.96
8.1.70.0190.00322.96
8.1.60.0130.01122.96
8.1.50.0150.00922.96
8.1.40.0190.01022.96
8.1.30.0160.00822.96
8.1.20.0180.01022.96
8.1.10.0130.01022.96
8.1.00.0220.00722.96

preferences:
73.7 ms | 403 KiB | 5 Q