3v4l.org

run code in 300+ PHP versions simultaneously
<?php //Enter your code here, enjoy! $array = array(); $array[] = "usernaam1"; $array[] = "usernaam2"; $array[] = "usernaam3"; $array[] = "usernaam4"; foreach( $array as $key => $usernaam ){ $get_transient = TRUE; if ( false === $get_transient ) { // It isn't there, so do something. echo sprintf( "Fetching data for %s\n", $usernaam ); $user = array( $usernaam ); break; } echo sprintf( "Doing nothing for %s\n", $usernaam ); //echo $key."\t=>\t".$value."\n"; } var_dump($usernaam);

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.60.0140.00718.56
8.3.50.0160.00521.14
8.3.40.0100.01018.84
8.3.30.0070.00720.21
8.3.20.0040.00420.34
8.3.10.0060.00321.92
8.3.00.0080.00022.58
8.2.180.0110.01116.38
8.2.170.0100.00722.96
8.2.160.0090.00622.27
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00420.73
8.2.110.0040.00422.20
8.2.100.0040.00817.91
8.2.90.0000.00919.40
8.2.80.0060.00319.39
8.2.70.0000.00817.50
8.2.60.0030.00618.05
8.2.50.0000.00818.07
8.2.40.0070.00718.34
8.2.30.0000.00819.45
8.2.20.0040.00417.75
8.2.10.0030.00517.75
8.2.00.0040.00417.61
8.1.280.0070.00725.92
8.1.270.0040.00423.99
8.1.260.0000.00826.35
8.1.250.0050.00328.09
8.1.240.0080.00024.00
8.1.230.0120.00020.84
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0030.00717.38
8.1.190.0040.00417.28
8.1.180.0040.00418.89
8.1.170.0080.00018.55
8.1.160.0040.00418.80
8.1.150.0050.00318.54
8.1.140.0040.00417.43
8.1.130.0070.00017.81
8.1.120.0030.00517.45
8.1.110.0050.00217.37
8.1.100.0000.00817.37
8.1.90.0000.00817.39
8.1.80.0000.00817.50
8.1.70.0070.00017.39
8.1.60.0030.00617.57
8.1.50.0040.00417.54
8.1.40.0030.00617.54
8.1.30.0040.00417.61
8.1.20.0040.00417.64
8.1.10.0070.00017.57
8.1.00.0030.00517.36
8.0.300.0040.00418.77
8.0.290.0030.00517.05
8.0.280.0070.00018.37
8.0.270.0070.00017.18
8.0.260.0030.00316.86
8.0.250.0070.00016.97
8.0.240.0000.01016.95
8.0.230.0000.00716.98
8.0.220.0030.00316.77
8.0.210.0030.00316.77
8.0.200.0030.00316.96
8.0.190.0040.00417.00
8.0.180.0040.00416.91
8.0.170.0080.00016.77
8.0.160.0000.00816.90
8.0.150.0040.00416.83
8.0.140.0000.00816.83
8.0.130.0060.00013.35
8.0.120.0040.00416.77
8.0.110.0000.00816.89
8.0.100.0050.00316.86
8.0.90.0000.00816.71
8.0.80.0070.00716.90
8.0.70.0000.00716.75
8.0.60.0000.00816.70
8.0.50.0000.00716.88
8.0.30.0080.01217.03
8.0.20.0130.00717.40
8.0.10.0070.00016.80
8.0.00.0140.00716.70
7.4.330.0050.00215.00
7.4.320.0000.00716.56
7.4.300.0060.00016.50
7.4.290.0000.00816.42
7.4.280.0070.00316.41
7.4.270.0040.00416.62
7.4.260.0000.00513.29
7.4.250.0040.00416.39
7.4.240.0020.00516.57
7.4.230.0000.00716.40
7.4.220.0100.01316.43
7.4.210.0070.01016.56
7.4.200.0000.00716.39
7.4.190.0000.00716.41
7.4.160.0100.00716.68
7.4.150.0140.00617.40
7.4.140.0160.00517.86
7.4.130.0100.00716.45
7.4.120.0090.00916.52
7.4.110.0090.01316.57
7.4.100.0110.01516.53
7.4.90.0090.00916.55
7.4.80.0060.01719.39
7.4.70.0030.01316.57
7.4.60.0070.01016.48
7.4.50.0080.00016.61
7.4.40.0040.01422.77
7.4.30.0030.01216.75
7.4.00.0090.00914.92
7.3.330.0050.00013.21
7.3.320.0060.00013.27
7.3.310.0000.00816.27
7.3.300.0030.00316.30
7.3.290.0070.00716.32
7.3.280.0060.00916.32
7.3.270.0090.00817.40
7.3.260.0100.00716.57
7.3.250.0140.01016.45
7.3.240.0060.01016.36
7.3.230.0170.00016.39
7.3.210.0070.01016.32
7.3.200.0080.01019.39
7.3.190.0090.01216.54
7.3.180.0120.00416.53
7.3.170.0080.00816.67
7.3.160.0120.00616.35
7.3.120.0100.00614.72
7.3.110.0100.00614.67
7.3.100.0080.01214.64
7.3.90.0060.00314.59
7.3.80.0030.01014.84
7.3.70.0090.00014.73
7.3.60.0110.00414.89
7.3.50.0070.00414.83
7.3.40.0030.00814.68
7.3.30.0060.00614.77
7.3.20.0100.00316.61
7.3.10.0060.00916.95
7.3.00.0040.00816.45
7.2.330.0090.00916.48
7.2.320.0210.00316.75
7.2.310.0110.01116.78
7.2.300.0130.00416.52
7.2.290.0070.01016.76
7.2.250.0110.00815.04
7.2.240.0140.00515.19
7.2.230.0060.00614.75
7.2.220.0030.01015.02
7.2.210.0060.00914.83
7.2.200.0070.00715.13
7.2.190.0060.00915.15
7.2.180.0060.00615.02
7.2.170.0030.01314.87
7.2.160.0070.00715.18
7.2.150.0030.01016.97
7.2.140.0070.01016.63
7.2.130.0070.00716.86
7.2.120.0040.00716.95
7.2.110.0070.00716.98
7.2.100.0070.00716.56
7.2.90.0030.01016.79
7.2.80.0100.00716.89
7.2.70.0070.01116.87
7.2.60.0030.01117.05
7.2.50.0030.00616.87
7.2.40.0030.01317.10
7.2.30.0030.00716.94
7.2.20.0030.01316.79
7.2.10.0070.00716.72
7.2.00.0090.00518.06
7.1.330.0100.00715.77
7.1.320.0100.00715.81
7.1.310.0090.00916.06
7.1.300.0100.00315.59
7.1.290.0090.00315.91
7.1.280.0060.00615.91
7.1.270.0110.00015.99
7.1.260.0070.00315.68
7.1.250.0060.00915.79
7.1.240.0030.01015.99
7.1.230.0040.00815.69
7.1.220.0070.01115.92
7.1.210.0040.00715.55
7.1.200.0040.01115.82
7.1.190.0030.01015.88
7.1.180.0050.00515.93
7.1.170.0130.00015.73
7.1.160.0070.01015.98
7.1.150.0060.00315.87
7.1.140.0030.00715.94
7.1.130.0030.01315.86
7.1.120.0030.01115.79
7.1.110.0060.00616.06
7.1.100.0050.00516.89
7.1.90.0000.01415.84
7.1.80.0100.00315.74
7.1.70.0040.00816.45
7.1.60.0080.01117.67
7.1.50.0030.01216.33
7.1.40.0040.00415.71
7.1.30.0000.01415.90
7.1.20.0000.00915.82
7.1.10.0000.01315.85
7.1.00.0020.02319.23
7.0.330.0060.00315.36
7.0.320.0060.00915.36
7.0.310.0040.01115.46
7.0.300.0030.00615.32
7.0.290.0040.01115.15
7.0.280.0100.00015.18
7.0.270.0080.00615.39
7.0.260.0060.00315.37
7.0.250.0030.00915.34
7.0.240.0030.00615.43
7.0.230.0040.00815.38
7.0.220.0030.01015.57
7.0.210.0000.01215.57
7.0.200.0020.00815.93
7.0.190.0050.00315.18
7.0.180.0070.00715.47
7.0.170.0060.00615.19
7.0.160.0060.00315.26
7.0.150.0040.00715.52
7.0.140.0020.04018.75
7.0.130.0040.01115.63
7.0.120.0030.01015.35
7.0.110.0030.00615.49
7.0.100.0000.00815.63
7.0.90.0030.00915.53
7.0.80.0000.01315.15
7.0.70.0110.03418.56
7.0.60.0050.04818.46
7.0.50.0050.04918.57
7.0.40.0070.04516.76
7.0.30.0060.04316.87
7.0.20.0100.04716.72
7.0.10.0070.04516.87
7.0.00.0000.02816.84
5.6.400.0080.00414.35
5.6.390.0140.00014.39
5.6.380.0070.00714.29
5.6.370.0100.00014.39
5.6.360.0120.00314.16
5.6.350.0100.00614.05
5.6.340.0060.00614.57
5.6.330.0120.00414.55
5.6.320.0110.00314.10
5.6.310.0080.00814.40
5.6.300.0090.00314.23
5.6.290.0100.00314.17
5.6.280.0040.04217.88
5.6.270.0120.00414.24
5.6.260.0040.01114.45
5.6.250.0040.00814.39
5.6.240.0060.00614.34
5.6.230.0030.01014.30
5.6.220.0090.04617.53
5.6.210.0100.03817.50
5.6.200.0070.02517.76
5.6.190.0090.03817.72
5.6.180.0080.04317.78
5.6.170.0070.04717.70
5.6.160.0020.03317.75
5.6.150.0050.03517.61
5.6.140.0090.04317.83
5.6.130.0070.03117.79
5.6.120.0110.02617.68
5.6.110.0070.03317.74
5.6.100.0060.03917.71
5.6.90.0110.04317.69
5.6.80.0030.03517.31
5.6.70.0080.04417.36
5.6.60.0070.04517.29
5.6.50.0060.03517.51
5.6.40.0100.03817.27
5.6.30.0060.04117.22
5.6.20.0030.02717.34
5.6.10.0080.03217.23
5.6.00.0050.02317.21
5.5.380.0110.00414.26
5.5.370.0060.00914.55
5.5.360.0030.03017.48
5.5.350.0070.02817.35
5.5.340.0080.04517.74
5.5.330.0040.04417.50
5.5.320.0050.03617.56
5.5.310.0050.04817.71
5.5.300.0050.04717.66
5.5.290.0080.03517.65
5.5.280.0070.04517.56
5.5.270.0050.02617.53
5.5.260.0100.04317.68
5.5.250.0050.04617.44
5.5.240.0060.04117.15
5.5.230.0050.04417.20
5.5.220.0060.04517.07
5.5.210.0080.04317.21
5.5.200.0030.04317.32
5.5.190.0100.04017.29
5.5.180.0070.04617.36
5.5.170.0060.00914.46
5.5.160.0040.02617.26
5.5.150.0050.02117.33
5.5.140.0100.01817.29
5.5.130.0020.02517.18
5.5.120.0020.02717.31
5.5.110.0040.02617.16
5.5.100.0020.02717.22
5.5.90.0030.02517.33
5.5.80.0030.02517.12
5.5.70.0060.04617.27
5.5.60.0040.03916.97
5.5.50.0060.02117.28
5.5.40.0060.02117.20
5.5.30.0050.02317.18
5.5.20.0020.02817.08
5.5.10.0090.02517.14
5.5.00.0020.02517.04
5.4.450.0040.02916.34
5.4.440.0070.02816.36
5.4.430.0120.03716.35
5.4.420.0020.04516.34
5.4.410.0100.02816.29
5.4.400.0060.04316.25
5.4.390.0050.04616.15
5.4.380.0030.04516.18
5.4.370.0010.04616.06
5.4.360.0030.03416.14
5.4.350.0080.04016.21
5.4.340.0080.03016.15
5.4.330.0070.00713.33
5.4.320.0030.02116.07
5.4.310.0040.02216.22
5.4.300.0040.02216.28
5.4.290.0010.02316.21
5.4.280.0020.02216.22
5.4.270.0030.02216.15
5.4.260.0050.02516.18
5.4.250.0040.02216.21
5.4.240.0030.02616.19
5.4.230.0000.02716.22
5.4.220.0070.03616.14
5.4.210.0050.02916.18
5.4.200.0050.02216.15
5.4.190.0050.02716.19
5.4.180.0020.02616.12
5.4.170.0030.02116.19
5.4.160.0030.03016.05
5.4.150.0060.02116.27
5.4.140.0030.02514.85
5.4.130.0030.02014.82
5.4.120.0020.02214.84
5.4.110.0040.03214.78
5.4.100.0020.02514.79
5.4.90.0100.01514.89
5.4.80.0030.02014.86
5.4.70.0050.01714.83
5.4.60.0050.01914.87
5.4.50.0050.03514.87
5.4.40.0050.03014.88
5.4.30.0090.02014.87
5.4.20.0040.02414.82
5.4.10.0050.01814.83
5.4.00.0020.02114.58
5.3.290.0000.02513.97
5.3.280.0030.04313.96
5.3.270.0030.02413.96
5.3.260.0030.02313.96
5.3.250.0030.02313.96
5.3.240.0100.03013.96
5.3.230.0020.02413.96
5.3.220.0020.02313.95
5.3.210.0030.02213.94
5.3.200.0030.02013.92
5.3.190.0030.03313.86
5.3.180.0000.02513.93
5.3.170.0000.02313.88
5.3.160.0020.02613.92
5.3.150.0050.01813.87
5.3.140.0080.01513.93
5.3.130.0030.02213.92
5.3.120.0000.02313.93
5.3.110.0030.02013.89
5.3.100.0070.01513.63
5.3.90.0030.01913.66
5.3.80.0030.02513.65
5.3.70.0100.01513.67
5.3.60.0070.03013.63
5.3.50.0000.02213.57
5.3.40.0000.02213.63
5.3.30.0000.02113.55
5.3.20.0010.03813.50
5.3.10.0030.02513.49
5.3.00.0050.04113.46
5.2.170.0000.03012.36
5.2.160.0000.03012.36
5.2.150.0000.03012.36
5.2.140.0000.03012.36
5.2.130.0000.05712.36
5.2.120.0030.05712.36
5.2.110.0030.06312.36
5.2.100.0000.05012.36
5.2.90.0030.04712.36
5.2.80.0030.05012.36
5.2.70.0130.05012.36
5.2.60.0130.05012.36
5.2.50.0070.05712.36
5.2.40.0070.04312.36
5.2.30.0000.06712.36
5.2.20.0100.04312.36
5.2.10.0000.05312.36
5.2.00.0070.06012.36
5.1.60.0100.04312.36
5.1.50.0000.03012.36
5.1.40.0030.05712.36
5.1.30.0000.05312.36
5.1.20.0030.04712.36
5.1.10.0000.05712.36
5.1.00.0030.04712.36
5.0.50.0030.04312.36
5.0.40.0030.04312.36
5.0.30.0000.06712.36
5.0.20.0100.02712.36
5.0.10.0030.04312.36
5.0.00.0000.05312.36
4.4.90.0070.02312.36
4.4.80.0030.03312.36
4.4.70.0000.02312.36
4.4.60.0070.03012.36
4.4.50.0030.03312.36
4.4.40.0000.04012.36
4.4.30.0000.03012.36
4.4.20.0000.04012.36
4.4.10.0000.02712.36
4.4.00.0000.05012.36
4.3.110.0030.02312.36
4.3.100.0030.02312.36
4.3.90.0000.03312.36
4.3.80.0030.05012.36
4.3.70.0000.03312.36
4.3.60.0000.03012.36
4.3.50.0000.02712.36
4.3.40.0000.05012.36
4.3.30.0030.03712.36
4.3.20.0000.03712.36
4.3.10.0000.03012.36
4.3.00.0070.03012.36

preferences:
70.61 ms | 401 KiB | 5 Q