3v4l.org

run code in 300+ PHP versions simultaneously
<?php $variantsData = range(1,5); // Loop to find each variants ID foreach ($variantsData as $variantData) { $variant[] = array('id'=> rand(1,4)); // see this line //^^ } print_r($variant[0]['id']); ?>

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)
7.3.70.0090.00714.78
7.3.60.0140.00714.83
7.3.50.0110.00414.78
7.3.40.0150.00014.43
7.3.30.0090.00314.49
7.3.20.0080.01414.64
7.3.10.0080.01114.61
7.3.00.0130.00614.69
7.2.200.0080.00815.02
7.2.190.0080.00514.75
7.2.180.0120.00315.04
7.2.170.0080.00414.93
7.2.160.0140.00314.87
7.2.150.0100.01014.94
7.2.140.0110.00815.02
7.2.130.0180.00315.16
7.2.120.0040.01115.11
7.2.110.0220.00015.16
7.2.100.0120.01215.00
7.2.90.0210.00015.09
7.2.80.0100.00815.11
7.2.70.0110.00515.08
7.2.60.0040.01115.15
7.2.50.0110.00915.27
7.2.40.0870.00615.13
7.2.30.0110.01115.14
7.2.20.0120.01714.96
7.2.10.0170.00414.86
7.2.00.0090.01015.19
7.1.300.0090.00913.71
7.1.290.0120.00913.98
7.1.280.0110.00713.93
7.1.270.0070.00713.92
7.1.260.0180.00413.77
7.1.250.0120.00613.94

preferences:
45.95 ms | 624 KiB | 5 Q