3v4l.org

run code in 300+ PHP versions simultaneously
<?php $info = array('0'=>'coffee', '1'=>'brown', '2'=>'caffeine'); // Listing all the variables list($drink, $color, $power) = $info; echo "$drink is $color and $power makes it special.\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)
8.3.70.0130.00716.23
8.3.60.0150.00618.56
8.3.50.0080.01022.12
8.3.40.0070.00718.97
8.3.30.0060.00919.16
8.3.20.0080.00020.27
8.3.10.0070.00022.15
8.3.00.0040.00422.58
8.2.190.0120.00316.58
8.2.180.0070.00716.75
8.2.170.0120.00622.96
8.2.160.0060.00921.06
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0050.00319.48
8.2.110.0040.00422.31
8.2.100.0060.00617.70
8.2.90.0040.00419.21
8.2.80.0080.00018.05
8.2.70.0060.00317.63
8.2.60.0000.00717.93
8.2.50.0090.00318.07
8.2.40.0030.00618.34
8.2.30.0000.00718.03
8.2.20.0000.00817.77
8.2.10.0050.00319.53
8.2.00.0050.00317.72
8.1.280.0130.00725.92
8.1.270.0080.00022.06
8.1.260.0080.00026.35
8.1.250.0000.00928.09
8.1.240.0030.00623.87
8.1.230.0110.00019.15
8.1.220.0040.00417.77
8.1.210.0050.00318.77
8.1.200.0030.00617.35
8.1.190.0050.00317.18
8.1.180.0050.00318.10
8.1.170.0030.00618.44
8.1.160.0040.00421.95
8.1.150.0060.00318.57
8.1.140.0000.00717.38
8.1.130.0000.00717.83
8.1.120.0000.00717.45
8.1.110.0040.00417.30
8.1.100.0040.00317.38
8.1.90.0040.00417.33
8.1.80.0040.00417.43
8.1.70.0000.00717.34
8.1.60.0030.00517.51
8.1.50.0000.00717.36
8.1.40.0040.00417.46
8.1.30.0030.00617.57
8.1.20.0000.00817.57
8.1.10.0040.00417.50
8.1.00.0000.00717.48
8.0.300.0000.00718.77
8.0.290.0080.00017.16
8.0.280.0040.00418.49
8.0.270.0000.00717.25
8.0.260.0000.00616.84
8.0.250.0070.00016.84
8.0.240.0050.00216.95
8.0.230.0030.00316.81
8.0.220.0050.00216.80
8.0.210.0040.00416.92
8.0.200.0000.00716.91
8.0.190.0040.00416.99
8.0.180.0000.00716.95
8.0.170.0060.00316.80
8.0.160.0000.00716.84
8.0.150.0030.00316.91
8.0.140.0000.00716.86
8.0.130.0030.00313.37
8.0.120.0040.00416.88
8.0.110.0000.00816.83
8.0.100.0000.00716.77
8.0.90.0040.00416.70
8.0.80.0040.01416.94
8.0.70.0040.00416.86
8.0.60.0000.00716.92
8.0.50.0040.00416.78
8.0.30.0150.00817.10
8.0.20.0100.00917.40
8.0.10.0040.00417.05
8.0.00.0090.00816.75
7.4.330.0000.00615.08
7.4.320.0060.00016.45
7.4.300.0060.00016.42
7.4.290.0000.00716.37
7.4.280.0000.00816.32
7.4.270.0070.00316.55
7.4.260.0000.00916.40
7.4.250.0040.00416.51
7.4.240.0030.00516.56
7.4.230.0000.00716.64
7.4.220.0100.01716.52
7.4.210.0090.00616.46
7.4.200.0000.00716.56
7.4.190.0040.00416.69
7.4.160.0130.00316.36
7.4.150.0150.00917.40
7.4.140.0110.00817.86
7.4.130.0050.01216.40
7.4.120.0100.00916.56
7.4.110.0100.00716.29
7.4.100.0130.00316.46
7.4.90.0100.01016.29
7.4.80.0060.01219.39
7.4.70.0100.00616.55
7.4.60.0090.00616.54
7.4.50.0000.00816.55
7.4.40.0040.00822.77
7.4.30.0090.01216.28
7.4.00.0110.00414.74
7.3.330.0000.00613.13
7.3.320.0060.00013.09
7.3.310.0030.00316.12
7.3.300.0000.00716.24
7.3.290.0040.01116.29
7.3.280.0140.00516.28
7.3.270.0080.00917.40
7.3.260.0080.00816.48
7.3.250.0140.00616.58
7.3.240.0120.00616.55
7.3.230.0100.00616.56
7.3.210.0070.01016.08
7.3.200.0090.00919.39
7.3.190.0090.00616.55
7.3.180.0040.01216.39
7.3.170.0120.00916.48
7.3.160.0070.01016.59
7.3.120.0060.00814.76
7.3.10.0040.00716.77
7.3.00.0050.01016.61
7.2.330.0070.01116.55
7.2.320.0170.00516.70
7.2.310.0140.01016.70
7.2.300.0090.00616.33
7.2.290.0130.00716.79
7.2.130.0020.01416.78
7.2.120.0050.00816.82
7.2.110.0100.00216.62
7.2.100.0030.01116.86
7.2.90.0050.00716.58
7.2.80.0080.00816.93
7.2.70.0070.00716.70
7.2.60.0070.00616.88
7.2.50.0060.00916.82
7.2.40.0060.00816.63
7.2.30.0060.00816.58
7.2.20.0130.00716.96
7.2.10.0050.00916.94
7.2.00.0080.00416.75
7.1.250.0040.01015.52
7.1.240.0040.01415.81
7.1.230.0150.00315.63
7.1.220.0110.00615.70
7.1.210.0090.00915.48
7.1.200.0070.00615.54
7.1.190.0060.00315.77
7.1.180.0030.01015.52
7.1.170.0080.00615.78
7.1.160.0030.01315.75
7.1.150.0150.00315.57
7.1.140.0050.00615.50
7.1.130.0140.00015.77
7.1.120.0080.01215.49
7.1.110.0050.00515.53
7.1.100.0000.00915.68
7.1.90.0080.00615.69
7.1.80.0040.00815.52
7.1.70.0030.00716.28
7.1.60.0060.01417.66
7.1.50.0000.01616.22
7.1.40.0060.00915.74
7.1.30.0090.00615.36
7.1.20.0070.00315.75
7.1.10.0100.00715.73
7.1.00.0100.04019.08
7.0.330.0040.00815.01
7.0.320.0030.01015.09
7.0.310.0060.00615.36
7.0.300.0060.00615.25
7.0.290.0030.01315.37
7.0.280.0160.00614.89
7.0.270.0040.01115.41
7.0.260.0130.00315.06
7.0.250.0100.00015.18
7.0.240.0170.00015.45
7.0.230.0060.00815.32
7.0.220.0160.00315.19
7.0.210.0000.01315.41
7.0.200.0050.00816.11
7.0.190.0150.00315.38
7.0.180.0070.00715.15
7.0.170.0030.00615.39
7.0.160.0100.00315.35
7.0.150.0000.01315.22
7.0.140.0060.03718.62
7.0.130.0070.00715.34
7.0.120.0100.00315.25
7.0.110.0110.00715.22
7.0.100.0200.04517.72
7.0.90.0110.03217.58
7.0.80.0130.02017.60
7.0.70.0020.02717.48
7.0.60.0110.02517.67
7.0.50.0060.02517.84
7.0.40.0070.02516.75
7.0.30.0010.02616.76
7.0.20.0090.04716.81
7.0.10.0070.03216.81
7.0.00.0070.03216.80
5.6.380.0110.00714.07
5.6.370.0030.01013.81
5.6.360.0000.01514.43
5.6.350.0090.00614.08
5.6.340.0100.00714.08
5.6.330.0070.01014.18
5.6.320.0100.00314.01
5.6.310.0090.01214.61
5.6.300.0110.01414.28
5.6.290.0150.00314.38
5.6.280.0070.04017.63
5.6.270.0090.00914.35
5.6.260.0080.00514.27
5.6.250.0070.04717.26
5.6.240.0050.04717.31
5.6.230.0100.02517.55
5.6.220.0130.02317.49
5.6.210.0090.02017.34
5.6.200.0070.02417.62
5.6.190.0060.02217.71
5.6.180.0070.02917.71
5.6.170.0090.03717.53
5.6.160.0070.02917.68
5.6.150.0070.02717.60
5.6.140.0090.02617.41
5.6.130.0120.02517.49
5.6.120.0140.02317.50
5.6.110.0160.02317.57
5.6.100.0090.02617.49
5.6.90.0100.02217.61
5.6.80.0130.02317.26
5.6.70.0070.02417.06
5.6.60.0130.02717.39
5.6.50.0130.02417.30
5.6.40.0030.02717.23
5.6.30.0070.02217.15
5.6.20.0120.02017.21
5.6.10.0080.02317.32
5.6.00.0120.02617.33
5.5.380.0080.04515.87
5.5.370.0070.04615.84
5.5.360.0000.04515.73
5.5.350.0050.02215.79
5.5.340.0050.02516.04
5.5.330.0000.02716.04
5.5.320.0060.02315.96
5.5.310.0050.03215.97
5.5.300.0050.02516.01
5.5.290.0070.02515.97
5.5.280.0070.02516.03
5.5.270.0050.02315.99
5.5.260.0080.02615.90
5.5.250.0060.02215.90
5.5.240.0030.02315.71
5.5.230.0140.01815.73
5.5.220.0030.02015.64
5.5.210.0080.02415.64
5.5.200.0090.02515.65
5.5.190.0120.01715.58
5.5.180.0080.02315.69
5.5.170.0160.00611.18
5.5.160.0040.02115.66
5.5.150.0040.02515.64
5.5.140.0090.01815.67
5.5.130.0080.03215.63
5.5.120.0070.04015.70
5.5.110.0130.02315.64
5.5.100.0080.03515.63
5.5.90.0140.03015.56
5.5.80.0100.04015.63
5.5.70.0070.04715.66
5.5.60.0100.02715.58
5.5.50.0110.04115.63
5.5.40.0110.04115.58
5.5.30.0080.04215.61
5.5.20.0050.04515.69
5.5.10.0080.04015.58
5.5.00.0040.03715.61
5.4.450.0100.02115.31
5.4.440.0110.02315.23
5.4.430.0090.02115.30
5.4.420.0140.02315.15
5.4.410.0140.02015.16
5.4.400.0120.02515.14
5.4.390.0030.02215.10
5.4.380.0080.02015.11
5.4.370.0120.02215.15
5.4.360.0120.01715.15
5.4.350.0060.02514.98
5.4.340.0100.02015.04
5.4.330.0140.00711.18
5.4.320.0110.01815.11
5.4.310.0080.02214.98
5.4.300.0060.04115.06
5.4.290.0050.03715.16
5.4.280.0110.03615.06
5.4.270.0120.03715.04
5.4.260.0130.03315.16
5.4.250.0050.04114.98
5.4.240.0080.03215.10
5.4.230.0050.03115.14
5.4.220.0080.04015.07
5.4.210.0080.04015.07
5.4.200.0160.03014.99
5.4.190.0070.03715.05
5.4.180.0080.04215.20
5.4.170.0080.03715.14
5.4.160.0050.04115.11
5.4.150.0070.03314.98
5.4.140.0060.03613.63
5.4.130.0070.03613.74
5.4.120.0060.04313.70
5.4.110.0060.03513.77
5.4.100.0080.02013.74
5.4.90.0070.03213.70
5.4.80.0070.03713.71
5.4.70.0140.03013.69
5.4.60.0010.04213.73
5.4.50.0050.02613.73
5.4.40.0100.03413.82
5.4.30.0050.04013.78
5.4.20.0050.03013.78
5.4.10.0080.03613.75
5.4.00.0050.03513.35
5.3.290.0190.02712.90
5.3.280.0010.04612.81
5.3.270.0050.04412.86
5.3.260.0060.02112.86
5.3.250.0060.03612.87
5.3.240.0030.04212.86
5.3.230.0090.03712.86
5.3.220.0050.03512.85
5.3.210.0070.02212.86
5.3.200.0070.03712.86
5.3.190.0080.04012.84
5.3.180.0070.04012.82
5.3.170.0030.04512.78
5.3.160.0020.03612.86
5.3.150.0030.03512.86
5.3.140.0030.03312.86
5.3.130.0050.04112.79
5.3.120.0020.04012.86
5.3.110.0050.03412.81
5.3.100.0100.03512.53
5.3.90.0050.02712.53
5.3.80.0030.03912.52
5.3.70.0000.04612.59
5.3.60.0080.03712.59
5.3.50.0080.03512.53
5.3.40.0070.03012.55
5.3.30.0070.03712.54
5.3.20.0050.04212.42
5.3.10.0020.03712.37
5.3.00.0050.03912.33
5.2.170.0050.03211.16
5.2.160.0030.03311.16
5.2.150.0060.02611.12
5.2.140.0020.03511.15
5.2.130.0070.03311.17
5.2.120.0030.02011.13
5.2.110.0020.03011.14
5.2.100.0050.03111.05
5.2.90.0050.03311.05
5.2.80.0080.02811.13
5.2.70.0050.03511.13
5.2.60.0030.03311.03
5.2.50.0010.02111.12
5.2.40.0070.03110.98
5.2.30.0050.02611.09
5.2.20.0070.03210.98
5.2.10.0060.03111.03
5.2.00.0030.03610.96
5.1.60.0050.02310.50
5.1.50.0060.02510.61
5.1.40.0050.02810.61
5.1.30.0020.03010.71
5.1.20.0020.03010.74
5.1.10.0040.02010.66
5.1.00.0030.03010.64
5.0.50.0040.0269.86
5.0.40.0070.0209.74
5.0.30.0050.0339.74
5.0.20.0000.0259.74
5.0.10.0020.0249.74
5.0.00.0030.0219.74
4.4.90.0030.0189.74
4.4.80.0050.0189.74
4.4.70.0030.0189.74
4.4.60.0070.0139.74
4.4.50.0040.0159.74
4.4.40.0040.0259.74
4.4.30.0020.0169.74
4.4.20.0020.0199.74
4.4.10.0030.0179.74
4.4.00.0030.0249.74
4.3.110.0030.0189.74
4.3.100.0010.0169.74
4.3.90.0040.0189.74
4.3.80.0030.0279.74
4.3.70.0060.0159.74
4.3.60.0030.0169.74
4.3.50.0030.0089.74
4.3.40.0050.0129.74
4.3.30.0020.0109.74
4.3.20.0030.0169.74
4.3.10.0030.0159.74
4.3.00.0030.0189.74

preferences:
42.05 ms | 401 KiB | 5 Q