3v4l.org

run code in 300+ PHP versions simultaneously
<?php $movie = array( "title" => "Rear Window", "director" => "Alfred Hitchcock", "year" => 1954, "minutes" => 112 ); // Displays "Array ( [director] => Alfred Hitchcock [year] => 1954 )" print_r( array_slice( $movie, 1, 2 ) );

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.40.0090.00918.71
8.3.30.0030.01718.79
8.3.20.0020.00520.16
8.3.10.0080.00021.82
8.3.00.0080.00017.66
8.2.170.0070.01022.96
8.2.160.0040.01120.30
8.2.150.0040.00424.18
8.2.140.0170.00324.66
8.2.130.0140.00726.16
8.2.120.0070.00021.00
8.2.110.0090.00021.04
8.2.100.0090.00317.90
8.2.90.0050.00319.17
8.2.80.0000.00817.97
8.2.70.0040.00417.63
8.2.60.0040.00417.92
8.2.50.0000.00818.07
8.2.40.0030.00619.82
8.2.30.0080.00318.04
8.2.20.0070.00017.48
8.2.10.0070.00017.99
8.2.00.0070.00017.61
8.1.270.0030.00523.92
8.1.260.0080.00026.35
8.1.250.0030.01628.09
8.1.240.0040.00422.20
8.1.230.0070.00419.30
8.1.220.0000.00817.74
8.1.210.0060.00318.77
8.1.200.0000.00917.10
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0000.00818.64
8.1.160.0050.00221.94
8.1.150.0000.00718.80
8.1.140.0030.00517.36
8.1.130.0030.00317.88
8.1.120.0030.00317.28
8.1.110.0000.00817.35
8.1.100.0040.00417.33
8.1.90.0000.00717.27
8.1.80.0040.00417.28
8.1.70.0080.00017.30
8.1.60.0080.00017.42
8.1.50.0080.00017.33
8.1.40.0000.01017.43
8.1.30.0000.00817.58
8.1.20.0060.00317.41
8.1.10.0080.00017.45
8.1.00.0040.00417.29
8.0.300.0080.00018.77
8.0.290.0060.00316.58
8.0.280.0030.00518.27
8.0.270.0080.00017.18
8.0.260.0000.00617.18
8.0.250.0080.00016.86
8.0.240.0000.00716.94
8.0.230.0040.00416.85
8.0.220.0000.00716.72
8.0.210.0030.00516.80
8.0.200.0070.00016.82
8.0.190.0030.00616.92
8.0.180.0000.00816.86
8.0.170.0060.00316.88
8.0.160.0030.00316.86
8.0.150.0070.00016.77
8.0.140.0040.00416.77
8.0.130.0050.00213.21
8.0.120.0040.00416.83
8.0.110.0000.00716.80
8.0.100.0040.00416.86
8.0.90.0020.00516.77
8.0.80.0120.00916.83
8.0.70.0070.00016.80
8.0.60.0080.00016.78
8.0.50.0040.00416.85
8.0.30.0120.01216.89
8.0.20.0110.00717.40
8.0.10.0050.00316.88
8.0.00.0080.01016.57
7.4.330.0020.00215.14
7.4.320.0070.00016.36
7.4.300.0030.00316.34
7.4.290.0000.00716.53
7.4.280.0040.00416.46
7.4.270.0030.00316.52
7.4.260.0000.00716.43
7.4.250.0030.00316.51
7.4.240.0050.00216.39
7.4.230.0000.00716.63
7.4.220.0060.01316.53
7.4.210.0030.01016.61
7.4.200.0030.00516.61
7.4.160.0060.00916.37
7.4.150.0110.00817.40
7.4.140.0160.00217.86
7.4.130.0140.00616.46
7.4.120.0150.00516.29
7.4.110.0100.00716.38
7.4.100.0140.00316.50
7.4.90.0100.00716.33
7.4.80.0100.01319.39
7.4.70.0040.01116.38
7.4.60.0100.00716.43
7.4.50.0000.00516.26
7.4.40.0100.01316.48
7.4.30.0110.00516.35
7.4.10.0070.01014.98
7.4.00.0030.01414.82
7.3.330.0020.00213.04
7.3.320.0000.00513.02
7.3.310.0000.00816.27
7.3.300.0030.00316.11
7.3.290.0120.00316.18
7.3.280.0110.00916.09
7.3.270.0140.00317.40
7.3.260.0090.00916.39
7.3.250.0070.01016.29
7.3.240.0090.00916.52
7.3.230.0140.00716.39
7.3.210.0060.00916.26
7.3.200.0140.00319.39
7.3.190.0090.00916.46
7.3.180.0070.01016.20
7.3.170.0060.00916.27
7.3.160.0060.00916.32
7.3.130.0120.00814.60
7.3.120.0100.00914.79
7.3.110.0080.01114.81
7.3.100.0030.01014.71
7.3.90.0090.00714.73
7.3.80.0050.00614.76
7.3.70.0060.00814.71
7.3.60.0080.00614.57
7.3.50.0080.00914.61
7.3.40.0090.00714.65
7.3.30.0020.01114.80
7.3.20.0040.01116.54
7.3.10.0030.01116.25
7.3.00.0040.01216.51
7.2.330.0000.01616.62
7.2.320.0030.01316.23
7.2.310.0110.00716.19
7.2.300.0140.00716.27
7.2.290.0130.00316.27
7.2.260.0140.00414.75
7.2.250.0080.01214.87
7.2.240.0050.01214.78
7.2.230.0080.00714.71
7.2.220.0060.00614.84
7.2.210.0090.00514.77
7.2.200.0050.00914.73
7.2.190.0060.00914.56
7.2.180.0060.00914.83
7.2.170.0030.00814.92
7.2.160.0060.00614.80
7.2.150.0030.00616.39
7.2.140.0060.00616.90
7.2.130.0110.00416.43
7.2.120.0030.00716.54
7.2.110.0080.00316.76
7.2.100.0070.00716.35
7.2.90.0100.00316.68
7.2.80.0070.00716.44
7.2.70.0070.00416.75
7.2.60.0030.00616.90
7.2.50.0030.01516.55
7.2.40.0030.00616.54
7.2.30.0060.00916.77
7.2.20.0030.01016.90
7.2.10.0090.00416.75
7.2.00.0000.01116.42
7.1.330.0050.00815.82
7.1.320.0080.00615.83
7.1.310.0070.00715.79
7.1.300.0060.00915.77
7.1.290.0070.00815.60
7.1.280.0050.00515.65
7.1.270.0060.00815.76
7.1.260.0050.00715.76
7.1.250.0040.01115.69
7.1.240.0040.00415.41
7.1.230.0000.00915.75
7.1.220.0120.00315.50
7.1.210.0000.01015.50
7.1.200.0030.00915.68
7.1.190.0030.00715.81
7.1.180.0070.00715.89
7.1.170.0090.00615.67
7.1.160.0080.00315.89
7.1.150.0030.00915.63
7.1.140.0060.00615.63
7.1.130.0090.00615.84
7.1.120.0120.00015.85
7.1.110.0040.00815.45
7.1.100.0070.00715.68
7.1.90.0060.00915.49
7.1.80.0040.00715.61
7.1.70.0050.00716.29
7.1.60.0060.01317.56
7.1.50.0030.01316.24
7.1.40.0110.00415.55
7.1.30.0040.00715.42
7.1.20.0030.01015.86
7.1.10.0030.00615.40
7.1.00.0030.04318.99
7.0.330.0040.00715.58
7.0.320.0060.00615.29
7.0.310.0100.00315.18
7.0.300.0110.00315.52
7.0.290.0060.00615.11
7.0.280.0030.00915.41
7.0.270.0060.00315.37
7.0.260.0000.01315.15
7.0.250.0000.00815.05
7.0.240.0060.01015.25
7.0.230.0040.01115.42
7.0.220.0000.01315.33
7.0.210.0070.00715.43
7.0.200.0050.00815.93
7.0.190.0040.01115.32
7.0.180.0030.00915.44
7.0.170.0040.01115.38
7.0.160.0060.00315.33
7.0.150.0030.00715.34
7.0.140.0070.04018.71
7.0.130.0090.00615.31
7.0.120.0040.00815.37
7.0.110.0100.00315.37
7.0.100.0040.00815.09
7.0.90.0030.00915.23
7.0.80.0110.00615.27
7.0.70.0040.00415.47
7.0.60.0090.03917.63
7.0.50.0100.03816.44
7.0.40.0070.02816.87
7.0.30.0160.04116.77
7.0.20.0180.03916.75
7.0.10.0080.03016.82
7.0.00.0050.02516.82
5.6.400.0030.01014.01
5.6.390.0040.00814.05
5.6.380.0040.00414.25
5.6.370.0060.00614.43
5.6.360.0070.01013.97
5.6.350.0060.00614.36
5.6.340.0060.00613.98
5.6.330.0040.00814.29
5.6.320.0110.00414.38
5.6.310.0040.01114.04
5.6.300.0030.01414.05
5.6.290.0070.00714.32
5.6.280.0050.04117.52
5.6.270.0060.00614.26
5.6.260.0110.00314.08
5.6.250.0080.00414.23
5.6.240.0060.00914.17
5.6.230.0040.00414.32
5.6.220.0030.01014.36
5.6.210.0060.04317.37
5.6.200.0080.04016.11
5.6.190.0120.03617.37
5.6.180.0350.01817.49
5.6.170.0130.02317.33
5.6.160.0030.02917.35
5.6.150.0060.02116.14
5.6.140.0060.04516.01
5.6.130.0070.02916.18
5.6.120.0030.03117.76
5.6.110.0090.02717.62
5.6.100.0050.04517.64
5.6.90.0040.04417.55
5.6.80.0040.04417.26
5.6.70.0070.01014.43
5.6.60.0000.01413.87
5.6.50.0060.00614.12
5.6.40.0040.00714.07
5.6.30.0000.01314.11
5.6.20.0050.00514.23
5.6.10.0080.00414.06
5.6.00.0100.00714.04
5.5.380.0060.00314.14
5.5.370.0030.01314.14
5.5.360.0130.00014.16
5.5.350.0170.03917.34
5.5.340.0070.04315.95
5.5.330.0030.03317.07
5.5.320.1720.02617.18
5.5.310.0220.03717.06
5.5.300.0030.04616.10
5.5.290.0060.04116.12
5.5.280.0050.03517.55
5.5.270.0080.03517.27
5.5.260.0080.04517.44
5.5.250.0070.02517.37
5.5.240.0030.02517.16
5.5.230.0080.00814.13
5.5.220.0090.00613.90
5.5.210.0000.01513.92
5.5.200.0090.00613.88
5.5.190.0060.00614.11
5.5.180.0070.00314.07
5.5.170.0100.00313.78
5.5.160.0100.00714.02
5.5.150.0040.00814.28
5.5.140.0030.00614.20
5.5.130.0060.00314.09
5.5.120.0030.01114.18
5.5.110.0000.00914.07
5.5.100.0070.00414.35
5.5.90.0030.00714.00
5.5.80.0080.00414.20
5.5.70.0000.01713.79
5.5.60.0040.00814.21
5.5.50.0060.00614.30
5.5.40.0040.01114.14
5.5.30.0030.00613.92
5.5.20.0040.01114.29
5.5.10.0000.00814.14
5.5.00.0000.00913.83
5.4.450.0290.02815.77
5.4.440.0120.03015.67
5.4.430.0090.02815.71
5.4.420.0100.02915.68
5.4.410.0030.03415.70
5.4.400.0080.02815.64
5.4.390.0050.03815.60
5.4.380.0060.03015.28
5.4.370.0100.03215.35
5.4.360.0150.02215.32
5.4.350.0050.02412.02
5.4.340.0040.02212.01
5.4.330.0000.00812.06
5.4.320.0050.02712.25
5.4.310.0040.02912.25
5.4.300.0040.02512.25
5.4.290.0060.02612.25
5.4.280.0050.02212.20
5.4.270.0050.02012.20
5.4.260.0050.02512.20
5.4.250.0060.02012.20
5.4.240.0040.02212.20
5.4.230.0030.02312.20
5.4.220.0060.01812.20
5.4.210.0060.02012.20
5.4.200.0060.02112.20
5.4.190.0040.02312.20
5.4.180.0070.02212.20
5.4.170.0040.02212.20
5.4.160.0030.02112.20
5.4.150.0020.02112.20
5.4.140.0020.02412.04
5.4.130.0070.01912.03
5.4.120.0060.02012.01
5.4.110.0080.01612.01
5.4.100.0030.02112.01
5.4.90.0070.01912.01
5.4.80.0040.02212.01
5.4.70.0070.01912.01
5.4.60.0040.02412.01
5.4.50.0070.02212.01
5.4.40.0050.02812.00
5.4.30.0070.02012.00
5.4.20.0080.01712.00
5.4.10.0040.02112.00
5.4.00.0050.02111.75
5.3.290.0040.02312.43
5.3.280.0040.02112.38
5.3.270.0040.02312.39
5.3.260.0020.02312.39
5.3.250.0090.01712.39
5.3.240.0060.02112.39
5.3.230.0060.02112.38
5.3.220.0040.02312.37
5.3.210.0040.02212.37
5.3.200.0070.02012.37
5.3.190.0050.02212.37
5.3.180.0060.02112.37
5.3.170.0060.02112.37
5.3.160.0060.02112.37
5.3.150.0040.03012.37
5.3.140.0050.02212.36
5.3.130.0040.02412.36
5.3.120.0060.02212.36
5.3.110.0040.02412.36
5.3.100.0080.02112.09
5.3.90.0010.02512.07
5.3.80.0050.02112.07
5.3.70.0030.02212.06
5.3.60.0030.02412.06
5.3.50.0040.01912.03
5.3.40.0060.02012.03
5.3.30.0030.02112.00
5.3.20.0070.01711.89
5.3.10.0070.01811.88
5.3.00.0040.02211.87
5.2.170.0020.0349.17
5.2.160.0050.0309.18
5.2.150.0050.0309.18
5.2.140.0070.0289.18
5.2.130.0090.0249.14
5.2.120.0040.0289.14
5.2.110.0070.0279.14
5.2.100.0050.0289.14
5.2.90.0050.0299.14
5.2.80.0040.0309.13
5.2.70.0030.0319.13
5.2.60.0050.0309.09
5.2.50.0040.0309.06
5.2.40.0020.0319.03
5.2.30.0040.0309.01
5.2.20.0040.0299.00
5.2.10.0040.0298.93
5.2.00.0040.0298.79
5.1.60.0060.0228.07
5.1.50.0030.0278.07
5.1.40.0020.0268.05
5.1.30.0040.0268.41
5.1.20.0030.0288.43
5.1.10.0030.0278.15
5.1.00.0020.0278.15
5.0.50.0040.0206.63
5.0.40.0040.0196.49
5.0.30.0020.0386.30
5.0.20.0050.0196.27
5.0.10.0050.0266.25
5.0.00.0020.0316.23
4.4.90.0040.0174.78
4.4.80.0050.0144.76
4.4.70.0040.0144.75
4.4.60.0030.0154.75
4.4.50.0010.0184.77
4.4.40.0030.0254.71
4.4.30.0020.0184.76
4.4.20.0040.0154.84
4.4.10.0060.0184.85
4.4.00.0030.0324.76
4.3.110.0060.0184.67
4.3.100.0020.0154.66
4.3.90.0020.0184.63
4.3.80.0030.0244.58
4.3.70.0030.0164.63
4.3.60.0020.0164.63
4.3.50.0020.0174.62
4.3.40.0010.0284.54
4.3.30.0020.0163.30
4.3.20.0060.0183.27
4.3.10.0050.0183.23
4.3.00.0000.0276.90

preferences:
47.04 ms | 400 KiB | 5 Q