3v4l.org

run code in 300+ PHP versions simultaneously
<?php $results['effects'] = array ( 0 => array ( 'label' => 'Euphoric', 'value' => 'width:100%', ), 1 => array ( 'label' => 'Relaxed', 'value' => 'width:100%', ), 2 => array ( 'label' => 'Uplifted', 'value' => 'width:92.0634920634921%', ), 3 => array ( 'label' => 'Happy', 'value' => 'width:86.7724867724868%', ), 4 => array ( 'label' => 'Creative', 'value' => 'width:84.1269841269841%', ), 5 => array ( 'label' => 'Stress', 'value' => 'width:100%', ), 6 => array ( 'label' => 'Lack of Appetite', 'value' => 'width:82.7586206896552%', ), 7 => array ( 'label' => 'Insomnia', 'value' => 'width:28.735632183908%', ), 8 => array ( 'label' => 'Muscle Spasms', 'value' => 'width:28.735632183908%', ), 9 => array ( 'label' => 'Pain', 'value' => 'width:28.735632183908%', ), 10 => array ( 'label' => 'Dry Eyes', 'value' => 'width:100%', ), 11 => array ( 'label' => 'Dizzy', 'value' => 'width:66.6666666666667%', ), 12 => array ( 'label' => 'Paranoid', 'value' => 'width:66.6666666666667%', ), 13 => array ( 'label' => 'Dry Mouth', 'value' => 'width:66.6666666666667%', ), ); if (isset($results['effects'])){ if (isset($results['effects'][0]['value'])){ $i = 0; $effectsArray = array(); foreach ($results['effects'] as $effect) { $effectsArray[] = [ 'label' => $effect['label'], 'value' => str_replace("width:", "", $effect['value']) ]; } } } var_dump($effectsArray);

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.70.0180.00416.50
8.3.60.0060.01216.50
8.3.50.0160.00421.21
8.3.40.0040.01118.89
8.3.30.0120.00318.46
8.3.20.0040.00421.82
8.3.10.0040.00420.40
8.3.00.0040.00423.52
8.2.180.0110.00416.75
8.2.170.0150.00022.96
8.2.160.0040.01119.47
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00821.05
8.2.120.0040.00426.35
8.2.110.0070.00321.18
8.2.100.0120.00017.72
8.2.90.0000.00917.72
8.2.80.0080.00019.41
8.2.70.0050.00318.05
8.2.60.0050.00317.63
8.2.50.0030.00518.28
8.2.40.0050.00320.47
8.2.30.0000.00719.21
8.2.20.0040.00418.05
8.2.10.0000.00718.14
8.2.00.0000.00817.64
8.1.280.0150.00025.92
8.1.270.0060.00323.92
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0000.00922.41
8.1.230.0060.00620.88
8.1.220.0040.00417.74
8.1.210.0030.00618.78
8.1.200.0000.00817.23
8.1.190.0000.00817.13
8.1.180.0000.00718.10
8.1.170.0060.00318.62
8.1.160.0000.00722.15
8.1.150.0040.00418.84
8.1.140.0060.00319.59
8.1.130.0030.00317.72
8.1.120.0040.00717.42
8.1.110.0040.00417.44
8.1.100.0040.00417.48
8.1.90.0040.00417.39
8.1.80.0080.00017.39
8.1.70.0070.00017.39
8.1.60.0000.00817.57
8.1.50.0000.00817.50
8.1.40.0040.00417.45
8.1.30.0040.00417.61
8.1.20.0040.00417.55
8.1.10.0080.00017.40
8.1.00.0000.00817.35
8.0.300.0040.00419.89
8.0.290.0040.00416.63
8.0.280.0030.00318.45
8.0.270.0040.00417.23
8.0.260.0060.00017.32
8.0.250.0070.00017.02
8.0.240.0050.00216.94
8.0.230.0040.00416.96
8.0.220.0030.00316.81
8.0.210.0030.00316.90
8.0.200.0080.00016.81
8.0.190.0060.00616.85
8.0.180.0000.00716.95
8.0.170.0000.00716.93
8.0.160.0000.00716.82
8.0.150.0060.00316.89
8.0.140.0000.00716.96
8.0.130.0000.00813.38
8.0.120.0060.00316.81
8.0.110.0040.00416.73
8.0.100.0030.00516.95
8.0.90.0000.00816.97
8.0.80.0080.00816.94
8.0.70.0040.00516.86
8.0.60.0030.00516.93
8.0.50.0040.00416.78
8.0.30.0110.01117.06
8.0.20.0090.01217.40
8.0.10.0000.00716.85
8.0.00.0150.00616.75
7.4.330.0000.00515.21
7.4.320.0040.00416.67
7.4.300.0000.00616.61
7.4.290.0070.00316.41
7.4.280.0040.00416.66
7.4.270.0000.00716.45
7.4.260.0040.00416.38
7.4.250.0000.00716.59
7.4.240.0030.00316.48
7.4.230.0030.00316.32
7.4.220.0030.01416.49
7.4.210.0120.00716.69
7.4.200.0000.00716.73
7.4.160.0090.00716.60
7.4.150.0060.01217.40
7.4.140.0140.00617.86
7.4.130.0150.00616.62
7.4.120.0120.01016.45
7.4.110.0130.01016.62
7.4.100.0060.01216.54
7.4.90.0060.01316.46
7.4.80.0130.00619.39
7.4.70.0110.00816.61
7.4.60.0120.00616.52
7.4.50.0030.00716.39
7.4.40.0120.00616.43
7.4.30.0060.01616.64
7.4.10.0070.01415.21
7.4.00.0050.01314.98
7.3.330.0030.00313.08
7.3.320.0000.00713.08
7.3.310.0000.00816.29
7.3.300.0050.00216.20
7.3.290.0040.00416.34
7.3.280.0120.01116.27
7.3.270.0140.00517.40
7.3.260.0090.00916.47
7.3.250.0070.01216.45
7.3.240.0100.00916.33
7.3.230.0140.00916.57
7.3.210.0180.00716.22
7.3.200.0130.01016.42
7.3.190.0150.00916.21
7.3.180.0130.01016.59
7.3.170.0090.00916.46
7.3.160.0070.01416.61
7.3.130.0090.00914.78
7.3.120.0080.00814.86
7.3.110.0070.01014.69
7.3.100.0040.01114.66
7.3.90.0070.00614.78
7.3.80.0070.00614.65
7.3.70.0060.00514.70
7.3.60.0080.00614.74
7.3.50.0070.00614.74
7.3.40.0050.01014.65
7.3.30.0070.00814.76
7.3.20.0090.00416.71
7.3.10.0060.00716.45
7.3.00.0040.00916.60
7.2.330.0120.00616.73
7.2.320.0090.01216.70
7.2.310.0000.01916.73
7.2.300.0120.01216.48
7.2.290.0090.00916.59
7.2.260.0090.00914.84
7.2.250.0060.01315.00
7.2.240.0090.00915.09
7.2.230.0010.01515.02
7.2.220.0030.01314.94
7.2.210.0090.00315.10
7.2.200.0040.00915.18
7.2.190.0070.00815.15
7.2.180.0060.00715.19
7.2.170.0060.01015.00
7.2.160.0060.00614.78
7.2.150.0080.00816.61
7.2.140.0070.01117.02
7.2.130.0000.01317.11
7.2.120.0070.00317.01
7.2.110.0030.00717.02
7.2.100.0080.00316.67
7.2.90.0030.01017.04
7.2.80.0090.00616.69
7.2.70.0100.00716.81
7.2.60.0100.00416.95
7.2.50.0070.00716.99
7.2.40.0070.00416.91
7.2.30.0040.00817.04
7.2.20.0060.00916.92
7.2.10.0100.00016.84
7.2.00.0060.00816.71
7.1.330.0030.01115.88
7.1.320.0070.00615.85
7.1.310.0060.00515.72
7.1.300.0060.00715.82
7.1.290.0070.00815.72
7.1.280.0080.00715.70
7.1.270.0020.01215.75
7.1.260.0070.00615.56
7.1.250.0040.00815.71
7.1.240.0000.01415.98
7.1.230.0090.00615.79
7.1.220.0030.01015.77
7.1.210.0070.00715.86
7.1.200.0100.00415.82
7.1.190.0000.01415.89
7.1.180.0030.00615.72
7.1.170.0040.00815.91
7.1.160.0000.01715.74
7.1.150.0070.00715.79
7.1.140.0040.00415.99
7.1.130.0070.00315.82
7.1.120.0070.01015.61
7.1.110.0060.00315.82
7.1.100.0060.00915.69
7.1.90.0040.00715.89
7.1.80.0070.00715.64
7.1.70.0070.00516.38
7.1.60.0050.01016.33
7.1.50.0060.00615.79
7.1.40.0030.01115.84
7.1.30.0030.00615.57
7.1.20.0110.00415.90
7.1.10.0060.01015.82
7.1.00.0050.04319.04
7.0.330.0040.00815.28
7.0.320.0070.00715.36
7.0.310.0040.00815.29
7.0.300.0100.00315.23
7.0.290.0060.00315.22
7.0.280.0000.01315.38
7.0.270.0110.00315.57
7.0.260.0000.01115.00
7.0.250.0060.00615.30
7.0.240.0100.00315.36
7.0.230.0070.00415.18
7.0.220.0030.01415.30
7.0.210.0030.01015.39
7.0.200.0180.00514.95
7.0.190.0080.00415.46
7.0.180.0080.00015.36
7.0.170.0060.00315.10
7.0.160.0090.00315.14
7.0.150.0100.00015.52
7.0.140.0030.01115.21
7.0.130.0070.01015.32
7.0.120.0100.00315.41
7.0.110.0170.03217.74
7.0.100.0250.03117.90
7.0.90.0260.02917.75
7.0.80.0200.03217.81
7.0.70.0190.03717.82
7.0.60.0180.03317.85
7.0.50.0170.03718.04
7.0.40.0220.03316.79
7.0.30.0320.02516.91
7.0.20.0220.03416.93
7.0.10.0290.02916.93
7.0.00.0280.02716.82
5.6.400.0070.00314.30
5.6.390.0060.00914.43
5.6.380.0030.01014.32
5.6.370.0000.01314.21
5.6.360.0030.00714.38
5.6.350.0100.00014.62
5.6.340.0060.00914.61
5.6.330.0030.01014.20
5.6.320.0030.01014.55
5.6.310.0040.01114.67
5.6.300.0060.01214.45
5.6.290.0060.00314.35
5.6.280.0090.00614.46
5.6.270.0000.00914.58
5.6.260.0090.03117.75
5.6.250.0180.02717.60
5.6.240.0100.02917.67
5.6.230.0110.03117.64
5.6.220.0070.03417.70
5.6.210.0130.02817.63
5.6.200.0100.03217.66
5.6.190.0080.03417.65
5.6.180.0100.03217.78
5.6.170.0100.03017.67
5.6.160.0120.03117.56
5.6.150.0110.03217.85
5.6.140.0140.02917.69
5.6.130.0100.03317.65
5.6.120.0130.02617.67
5.6.110.0070.03417.77
5.6.100.0070.03417.65
5.6.90.0070.03317.67
5.6.80.0030.03617.26
5.6.70.0130.02817.28
5.6.60.0100.03817.37
5.6.50.0100.03117.47
5.6.40.0070.03417.24
5.6.30.0050.03517.26
5.6.20.0140.02417.35
5.6.10.0100.03017.26
5.6.00.0050.04017.47

preferences:
59.99 ms | 401 KiB | 5 Q