3v4l.org

run code in 300+ PHP versions simultaneously
<?php $environments = [ 'qa-only' => [], 'prd-only' => [], 'both' => [] ]; $qa = file('qa.txt', FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES); $prd = file('prd.txt', FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES); foreach($prd as $key => $env) { if(in_array($env, $qa)) { $environments['both'][] = $env; } else { $environments['prd-only'][] = $env; } } foreach($qa as $key => $env) { if(in_array($env, $prd) && !in_array($env, $environments['both'])) { $environments['both'][] = $env; } else { $environments['qa-only'][] = $env; } } print_r($environments);

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.110.0120.00920.94
8.3.100.0060.00324.06
8.3.90.0040.00426.77
8.3.80.0040.00718.43
8.3.70.0140.00716.50
8.3.60.0130.00616.67
8.3.50.0070.00716.62
8.3.40.0060.01221.71
8.3.30.0090.00620.30
8.3.20.0140.00721.68
8.3.10.0120.00621.73
8.3.00.0100.01018.82
8.2.230.0060.00322.58
8.2.220.0070.01337.54
8.2.210.0110.00326.77
8.2.200.0090.00018.66
8.2.190.0110.00316.63
8.2.180.0140.00418.50
8.2.170.0170.00322.96
8.2.160.0070.01018.89
8.2.150.0160.00319.15
8.2.140.0190.00020.52
8.2.130.0120.00320.39
8.2.120.0070.00719.18
8.2.110.0110.00419.34
8.2.100.0110.00318.97
8.2.90.0060.01218.91
8.2.80.0100.00319.22
8.2.70.0110.00718.72
8.2.60.0100.01018.83
8.2.50.0060.01219.15
8.2.40.0090.00918.87
8.2.30.0150.00418.75
8.2.20.0100.00718.78
8.2.10.0120.00918.71
8.2.00.0070.01518.69
8.1.290.0030.00630.84
8.1.280.0060.01325.92
8.1.270.0090.00622.14
8.1.260.0150.00722.18
8.1.250.0070.01323.96
8.1.240.0090.00620.40
8.1.230.0040.01120.40
8.1.220.0100.00720.44
8.1.210.0090.00618.50
8.1.200.0070.01018.75
8.1.190.0110.00418.55
8.1.180.0040.01118.38
8.1.170.0110.00418.85
8.1.160.0140.00418.61
8.1.150.0030.01418.86
8.1.140.0070.01118.61
8.1.130.0060.00918.86
8.1.120.0070.00718.63
8.1.110.0110.00418.63
8.1.100.0110.00419.75
8.1.90.0140.00418.63
8.1.80.0060.01219.69
8.1.70.0070.01118.63
8.1.60.0070.00718.75
8.1.50.0090.00618.54
8.1.40.0160.00318.75
8.1.30.0070.00719.00
8.1.20.0150.00419.82
8.1.10.0110.00718.61
8.1.00.0070.01018.39

preferences:
28.46 ms | 403 KiB | 5 Q