3v4l.org

run code in 300+ PHP versions simultaneously
<?php $treadmills = [ 'bowflexseries3' => [ 'brand' => 'Bowflex', 'description' => 'Bowflex Series 3', 'image' => '/images/bowflex-series-3-150x150.jpg', 'discontinued' => '0' ], 'bowflexseries5' => [ 'brand' => 'Bowflex', 'description' => 'Bowflex Series 5', 'image' => '/images/bowflex-series-5-treadmill-review-150x150.jpg', 'discontinued' => '1' ], 'bowflextc10' => [ 'brand' => 'Bowflex', 'description' => 'Bowflex Treadclimber TC10', 'image' => '/images/bowflex-treadclimber-tc10-review-150x150.jpg', 'discontinued' => '0' ] ]; function randomTreadmill() { global $treadmills; // Filter out discontinued treadmills $filtered = array_filter($treadmills, function($treadmill) { return $treadmill['discontinued'] == 0; }); // Shuffle, and return the first one shuffle($filtered); return array_shift($filtered); } $treadmill = randomTreadmill(); echo $treadmill['brand'] . "\n"; echo $treadmill['description'] . "\n"; echo $treadmill['image'] . "\n";

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.4.00.0160.00314.80
7.3.120.0140.00414.59
7.3.110.0130.00015.09
7.3.100.0070.00714.70
7.3.90.0100.00314.55
7.3.80.0060.00914.54
7.3.70.0080.00814.89
7.3.60.0060.00314.77
7.3.50.0100.00014.83
7.3.40.0070.00314.82
7.3.30.0110.00414.57
7.3.20.0070.00716.75
7.3.10.0110.00616.79
7.3.00.0100.00716.59
7.2.250.0040.01514.93
7.2.240.0030.01515.04
7.2.230.0000.01715.02
7.2.220.0070.00715.11
7.2.210.0070.00715.32
7.2.200.0060.01015.18
7.2.190.0100.00615.00
7.2.180.0060.00914.96
7.2.170.0030.01314.82
7.1.330.0060.00915.83
7.1.320.0000.01415.89
7.1.310.0000.01415.75
7.1.300.0130.00015.64
7.1.290.0070.00715.76
7.1.280.0000.00816.01
7.1.270.0030.01015.86
7.1.260.0060.00915.76
7.1.70.0000.00916.93
7.1.60.0060.01919.22
7.1.50.0110.01417.10
7.1.00.0030.07722.48
7.0.200.0070.00716.78
7.0.140.0030.03322.07
7.0.60.0070.06719.93
7.0.50.0070.07717.86
7.0.40.0070.05020.30
7.0.30.0300.07720.20
7.0.20.0170.04320.25
7.0.10.0070.06720.08
7.0.00.0130.04720.25
5.6.280.0000.07720.92
5.6.210.0070.08020.66
5.6.200.0100.03718.19
5.6.190.0070.07720.48
5.6.180.0300.05320.57
5.6.170.0200.07320.76
5.6.160.0070.07720.50
5.6.150.0030.04318.29
5.6.140.0070.08018.13
5.6.130.0070.08018.28
5.6.120.0030.05721.01
5.6.110.0070.08721.09
5.6.100.0170.05020.98
5.6.90.0070.08321.06
5.6.80.0070.05720.39
5.5.350.0130.08720.42
5.5.340.0070.05718.03
5.5.330.0200.07020.13
5.5.320.0300.07320.35
5.5.310.0130.05720.35
5.5.300.0100.03317.93
5.5.290.0070.07317.92
5.5.280.0130.05320.66
5.5.270.0130.03720.84
5.5.260.0230.07020.97
5.5.250.0000.04320.67
5.5.240.0070.08020.08
5.4.450.0800.06719.30
5.4.440.0770.05319.55
5.4.430.0630.05719.39
5.4.420.0730.05319.57
5.4.410.0200.06019.50
5.4.400.0630.05719.11
5.4.390.0800.05319.33
5.4.380.0930.05018.80
5.4.370.0930.05018.70
5.4.360.0930.04718.53
5.4.350.0970.04718.51
5.4.340.0930.04718.57
5.4.320.0870.05318.80
5.4.310.0870.06018.74
5.4.300.0970.05318.59
5.4.290.0870.05318.76
5.4.280.0970.05018.74
5.4.270.0700.06018.80
5.4.260.0700.05718.72
5.4.250.0970.05318.79
5.4.240.1030.05318.47
5.4.230.0170.05718.62
5.4.220.0170.05018.59
5.4.210.0130.06718.74
5.4.200.0400.05016.80
5.4.190.0930.05018.59
5.4.180.0930.05018.73
5.4.170.0770.06718.61
5.4.160.0930.04718.68
5.4.150.0900.05318.82
5.4.140.0970.05716.47
5.4.130.0900.05016.31
5.4.120.1030.03716.46
5.4.110.0970.04316.36
5.4.100.0830.05716.43
5.4.90.0900.05016.35
5.4.80.0700.05716.25
5.4.70.0770.05316.43
5.4.60.0770.05016.25
5.4.50.0930.04316.12
5.4.40.0870.05016.26
5.4.30.0800.04716.17
5.4.20.0700.05316.27
5.4.10.0770.04716.27
5.4.00.0700.05015.71
5.3.290.0800.05714.76
5.3.280.0730.05314.60
5.3.270.0730.05014.55
5.3.260.0730.05014.59
5.3.250.0870.04314.61
5.3.240.0730.05014.64
5.3.230.0730.05014.57
5.3.220.0770.04714.48
5.3.210.0830.04714.48
5.3.200.0770.05014.64
5.3.190.0830.04014.46
5.3.180.0700.05314.64
5.3.170.0800.05014.64
5.3.160.0730.05314.51
5.3.150.0830.04014.49
5.3.140.0800.06314.55
5.3.130.0900.04714.46
5.3.120.0900.06714.62
5.3.110.0870.04714.51
5.3.100.0730.05014.04
5.3.90.0800.04314.03
5.3.80.0800.04713.95
5.3.70.0770.05313.91
5.3.60.0770.04714.01
5.3.50.0670.05314.04
5.3.40.0730.04713.93
5.3.30.0800.05713.86
5.3.20.0700.05013.67
5.3.10.0730.05713.75
5.3.00.0730.04713.60
5.2.170.0670.03311.20
5.2.160.0630.04011.20
5.2.150.0570.04711.28
5.2.140.0600.04311.14
5.2.130.0600.04011.13
5.2.120.0600.04311.14
5.2.110.0630.03711.03
5.2.100.0530.04711.24
5.2.90.0670.03311.06
5.2.80.0700.03011.15
5.2.70.0700.03711.07
5.2.60.0570.04311.02
5.2.50.0600.04311.03
5.2.40.0400.04710.94
5.2.30.0430.04311.02
5.2.20.0500.03710.96
5.2.10.0600.04010.95
5.2.00.0770.05010.69
5.1.60.0600.03010.13
5.1.50.0570.0409.97
5.1.40.0630.03010.07
5.1.30.0530.04310.39
5.1.20.0730.03310.42
5.1.10.0700.05310.08
5.1.00.0600.04710.13
5.0.50.0200.0338.62
5.0.40.0370.0308.44
5.0.30.0330.0438.36
5.0.20.0400.0278.23
5.0.10.0400.0308.29
5.0.00.0430.0408.23
4.4.90.0230.0305.93
4.4.80.0270.0235.91
4.4.70.0230.0235.89
4.4.60.0270.0275.89
4.4.50.0300.0205.95
4.4.40.0170.0435.91
4.4.30.0270.0205.82
4.4.20.0200.0275.87
4.4.10.0230.0275.93
4.4.00.0270.0375.93
4.3.110.0300.0275.83
4.3.100.0330.0235.86
4.3.90.0270.0235.77
4.3.80.0370.0405.84
4.3.70.0270.0235.84
4.3.60.0330.0205.81
4.3.50.0330.0235.91
4.3.40.0330.0375.78
4.3.30.0130.0275.09
4.3.20.0130.0235.09
4.3.10.0100.0275.09
4.3.00.0100.0277.61

preferences:
57.19 ms | 403 KiB | 5 Q