3v4l.org

run code in 300+ PHP versions simultaneously
<?php $postarr = array('_parent_id' => null, '_year' => 2013); $data['post_type'] = "easy-photo-album"; if(!isset($postarr)){ print_r($data); } if($data['post_type'] == 'easy-photo-album') { $title = 'Undefined album'; if(isset($postarr['_parent_id']) && !empty($postarr['_parent_id'])){ $event = get_post($postarr['_parent_id']); $title = $event->post_title; } $title .= ' ['.$postarr['_year'].']'; $data['post_title'] = $title; } print_r($data);

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.0070.00718.28
8.3.50.0120.00921.27
8.3.40.0150.00018.72
8.3.30.0150.00020.08
8.3.20.0070.00020.30
8.3.10.0040.00422.09
8.3.00.0080.00022.49
8.2.180.0070.00716.50
8.2.170.0110.00422.96
8.2.160.0070.01122.20
8.2.150.0050.00224.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0070.00020.63
8.2.110.0040.00422.09
8.2.100.0080.00417.84
8.2.90.0000.00819.17
8.2.80.0050.00319.46
8.2.70.0030.00617.75
8.2.60.0000.00817.93
8.2.50.0000.00918.07
8.2.40.0030.00618.15
8.2.30.0000.00819.45
8.2.20.0030.00517.79
8.2.10.0080.00017.67
8.2.00.0080.00417.80
8.1.280.0170.00325.92
8.1.270.0050.00223.99
8.1.260.0050.00226.35
8.1.250.0040.00428.09
8.1.240.0060.00323.90
8.1.230.0040.00719.21
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0060.00317.38
8.1.190.0090.00017.52
8.1.180.0050.00318.10
8.1.170.0040.00418.66
8.1.160.0050.00318.77
8.1.150.0000.00818.55
8.1.140.0100.00017.50
8.1.130.0030.00317.83
8.1.120.0000.00717.36
8.1.110.0000.00817.48
8.1.100.0000.00717.50
8.1.90.0000.00717.37
8.1.80.0030.00417.38
8.1.70.0000.00817.47
8.1.60.0000.00817.57
8.1.50.0000.00817.43
8.1.40.0080.00317.46
8.1.30.0080.00017.59
8.1.20.0080.00017.65
8.1.10.0040.00417.51
8.1.00.0040.00417.42
8.0.300.0040.00418.77
8.0.290.0000.00717.05
8.0.280.0030.00318.42
8.0.270.0000.00717.20
8.0.260.0000.00616.83
8.0.250.0000.00717.02
8.0.240.0040.00416.91
8.0.230.0030.00516.88
8.0.220.0000.00716.78
8.0.210.0040.00416.80
8.0.200.0060.00016.93
8.0.190.0030.00616.98
8.0.180.0000.00716.80
8.0.170.0050.00316.86
8.0.160.0000.00716.94
8.0.150.0000.00716.79
8.0.140.0000.00716.82
8.0.130.0000.00613.39
8.0.120.0050.00216.83
8.0.110.0050.00316.93
8.0.100.0030.00616.93
8.0.90.0080.00016.85
8.0.80.0090.00616.95
8.0.70.0040.00416.91
8.0.60.0040.00416.88
8.0.50.0000.00716.84
8.0.30.0110.01217.25
8.0.20.0060.01317.40
8.0.10.0030.00316.81
8.0.00.0090.01116.79
7.4.330.0000.00515.02
7.4.320.0000.00616.52
7.4.300.0000.00616.55
7.4.290.0000.00716.61
7.4.280.0000.00716.51
7.4.270.0040.00416.53
7.4.260.0000.00513.32
7.4.250.0040.00416.55
7.4.240.0040.00416.56
7.4.230.0030.00316.66
7.4.220.0140.00716.64
7.4.210.0090.00816.57
7.4.200.0000.00816.38
7.4.190.0000.00716.68
7.4.160.0120.00616.42
7.4.150.0080.01217.40
7.4.140.0080.01117.86
7.4.130.0110.00616.57
7.4.120.0080.00916.50
7.4.110.0170.00016.54
7.4.100.0120.01216.40
7.4.90.0120.00916.49
7.4.80.0030.01319.39
7.4.70.0070.01016.42
7.4.60.0030.01316.30
7.4.50.0030.00516.60
7.4.40.0100.00622.77
7.4.30.0100.00716.42
7.4.00.0100.00314.70
7.3.330.0000.00513.13
7.3.320.0030.00313.25
7.3.310.0060.00016.36
7.3.300.0030.00316.35
7.3.290.0140.00016.33
7.3.280.0110.00616.38
7.3.270.0070.01017.40
7.3.260.0060.01216.38
7.3.250.0090.00816.46
7.3.240.0120.00616.39
7.3.230.0070.01116.39
7.3.210.0100.00716.61
7.3.200.0130.01019.39
7.3.190.0070.01016.61
7.3.180.0090.00616.36
7.3.170.0090.01016.54
7.3.160.0070.01016.71
7.3.120.0100.00714.71
7.3.110.0100.00714.54
7.3.100.0080.00814.81
7.3.90.0090.00614.89
7.3.80.0080.00414.62
7.3.70.0000.00914.84
7.3.60.0000.01614.89
7.3.50.0000.01414.86
7.3.40.0060.00614.82
7.3.30.0030.00714.84
7.3.20.0030.00716.52
7.3.10.0060.00916.64
7.3.00.0000.01116.77
7.2.330.0030.01416.73
7.2.320.0090.01016.52
7.2.310.0030.01616.47
7.2.300.0030.01316.57
7.2.290.0130.00316.50
7.2.240.0150.00315.04
7.2.230.0060.00615.05
7.2.220.0090.00614.59
7.2.210.0030.01315.02
7.2.200.0050.00514.70
7.2.190.0000.01515.10
7.2.180.0070.01115.16
7.2.170.0080.00814.80
7.2.160.0070.01015.16
7.2.150.0100.00616.69
7.2.140.0000.01816.85
7.2.130.0030.01016.93
7.2.120.0030.01516.84
7.2.110.0040.01116.81
7.2.100.0070.00717.00
7.2.90.0090.00616.70
7.2.80.0060.00917.15
7.2.70.0070.00716.79
7.2.60.0120.00316.98
7.2.50.0000.01216.65
7.2.40.0090.00916.88
7.2.30.0100.00716.55
7.2.20.0110.00316.86
7.2.10.0130.00316.64
7.2.00.0070.00717.02
7.1.330.0060.00615.60
7.1.320.0080.00415.92
7.1.310.0090.00615.90
7.1.300.0070.01015.90
7.1.290.0070.00715.84
7.1.280.0060.00315.78
7.1.270.0030.01015.88
7.1.260.0060.00315.71
7.1.250.0080.00815.69
7.1.70.0000.01017.34
7.1.60.0150.00919.18
7.1.50.0100.01416.87
7.1.00.0000.07722.35
7.0.200.0050.00216.50
7.0.140.0030.07322.12
7.0.100.0100.03720.04
7.0.90.0200.07319.92
7.0.80.0100.07019.83
7.0.70.0070.05019.89
7.0.60.0130.07019.95
7.0.50.0100.09020.30
7.0.40.0070.06020.15
7.0.30.0170.05020.13
7.0.20.0070.08320.00
7.0.10.0170.05320.09
7.0.00.0070.07720.14
5.6.280.0100.06721.01
5.6.250.0070.04720.55
5.6.240.0030.07320.60
5.6.230.0100.07020.65
5.6.220.0030.04720.50
5.6.210.0100.07320.72
5.6.200.0200.07320.93
5.6.190.0100.08021.08
5.6.180.0070.08321.03
5.6.170.0100.07321.07
5.6.160.0130.07021.00
5.6.150.0170.05021.10
5.6.140.0070.08321.11
5.6.130.0130.08021.10
5.6.120.0030.09021.07
5.6.110.0100.04721.00
5.6.100.0100.07021.03
5.6.90.0130.06020.95
5.6.80.0030.07320.44
5.6.70.0130.07020.40
5.6.60.0070.07720.32
5.6.50.0200.06720.49
5.6.40.0130.05720.36
5.6.30.0070.08020.46
5.6.20.0100.06020.38
5.6.10.0030.04320.39
5.6.00.0030.05020.40
5.5.380.0230.07020.34
5.5.370.0100.08320.35
5.5.360.0100.08020.39
5.5.350.0100.06320.34
5.5.340.0100.06320.86
5.5.330.0070.05720.88
5.5.320.0100.07720.90
5.5.310.0030.05720.91
5.5.300.0130.07020.90
5.5.290.0130.04020.82
5.5.280.0070.05320.82
5.5.270.0100.03720.79
5.5.260.0000.07020.81
5.5.250.0070.08320.59
5.5.240.0070.06320.21
5.5.230.0070.05020.13
5.5.220.0100.07020.26
5.5.210.0030.05020.30
5.5.200.0030.04020.22
5.5.190.0070.05020.13
5.5.180.0070.06720.12
5.5.160.0130.07020.21
5.5.150.0070.03320.14
5.5.140.0170.06720.16
5.5.130.0070.04020.21
5.5.120.0070.04020.25
5.5.110.0070.06720.19
5.5.100.0070.08020.05
5.5.90.0000.06719.96
5.5.80.0030.04720.09
5.5.70.0030.07020.03
5.5.60.0130.07320.05
5.5.50.0130.05020.05
5.5.40.0070.04020.04
5.5.30.0100.06720.02
5.5.20.0100.08020.11
5.5.10.0070.08020.10
5.5.00.0100.06020.06
5.4.450.0130.06719.45
5.4.440.0070.08019.54
5.4.430.0030.07319.23
5.4.420.0070.03719.49
5.4.410.0030.04019.32
5.4.400.0100.07018.83
5.4.390.0000.06019.23
5.4.380.0130.06719.12
5.4.370.0170.05719.25
5.4.360.0100.04318.97
5.4.350.0200.06019.03
5.4.340.0100.03319.06
5.4.320.0100.04318.94
5.4.310.0030.04718.97
5.4.300.0000.03718.98
5.4.290.0000.06018.78
5.4.280.0000.06318.92
5.4.270.0070.06719.24
5.4.260.0200.06018.95
5.4.250.0000.04318.97
5.4.240.0000.08318.96
5.4.230.0000.05019.03
5.4.220.0070.06319.05
5.4.210.0130.03019.17
5.4.200.0100.06318.90
5.4.190.0030.05718.95
5.4.180.0130.06019.02
5.4.170.0030.08019.22
5.4.160.0070.03719.12
5.4.150.0100.06718.94
5.4.140.0030.05716.33
5.4.130.0200.06016.28
5.4.120.0130.06716.32
5.4.110.0130.06316.43
5.4.100.0100.06716.31
5.4.90.0030.07016.32
5.4.80.0030.06716.24
5.4.70.0130.06716.34
5.4.60.0100.07316.20
5.4.50.0030.04316.23
5.4.40.0170.06316.34
5.4.30.0070.07016.17
5.4.20.0130.06016.23
5.4.10.0000.07316.39
5.4.00.0130.06715.68
5.3.290.0070.06714.61
5.3.280.0070.08014.60
5.3.270.0030.08714.57
5.3.260.0030.06314.59
5.3.250.0000.04714.52
5.3.240.0100.07014.59
5.3.230.0070.07014.43
5.3.220.0030.06714.42
5.3.210.0070.05314.56
5.3.200.0170.06014.48
5.3.190.0100.07714.38
5.3.180.0100.04714.42
5.3.170.0000.04314.55
5.3.160.0100.07314.42
5.3.150.0030.09014.55
5.3.140.0030.06014.41
5.3.130.0070.08014.47
5.3.120.0070.04314.38
5.3.110.0070.07314.56
5.3.100.0100.05713.85
5.3.90.0000.07313.83
5.3.80.0100.06313.96
5.3.70.0070.07314.00
5.3.60.0100.07013.98
5.3.50.0130.06313.90
5.3.40.0170.04313.89
5.3.30.0070.04013.76
5.3.20.0030.03713.68
5.3.10.0070.07313.64
5.3.00.0070.03013.54
5.2.170.0070.06011.17
5.2.160.0100.03011.21
5.2.150.0130.05011.18
5.2.140.0030.05011.05
5.2.130.0030.03311.02
5.2.120.0130.04711.05
5.2.110.0000.03311.09
5.2.100.0070.04310.91
5.2.90.0100.05010.98
5.2.80.0030.06711.05
5.2.70.0070.05310.90
5.2.60.0070.06310.87
5.2.50.0070.03011.01
5.2.40.0000.05010.92
5.2.30.0030.06010.92
5.2.20.0000.03710.84
5.2.10.0070.05710.88
5.2.00.0000.07010.61
5.1.60.0100.04710.00
5.1.50.0130.0439.83
5.1.40.0000.05310.05
5.1.30.0070.02710.45
5.1.20.0030.05310.41
5.1.10.0070.05010.05
5.1.00.0030.03010.10
5.0.50.0070.0378.54
5.0.40.0030.0438.39
5.0.30.0000.0338.31
5.0.20.0070.0408.18
5.0.10.0030.0238.27
5.0.00.0000.0438.23
4.4.90.0030.0337.95
4.4.80.0100.0207.95
4.4.70.0070.0337.95
4.4.60.0030.0307.95
4.4.50.0030.0377.95
4.4.40.0070.0437.95
4.4.30.0000.0337.95
4.4.20.0000.0377.95
4.4.10.0100.0307.95
4.4.00.0030.0337.95
4.3.110.0100.0107.95
4.3.100.0000.0377.95
4.3.90.0030.0207.95
4.3.80.0030.0537.95
4.3.70.0070.0107.95
4.3.60.0070.0307.95
4.3.50.0000.0337.95
4.3.40.0030.0507.95
4.3.30.0000.0377.95
4.3.20.0000.0177.95
4.3.10.0030.0337.95
4.3.00.0000.0307.95

preferences:
47.47 ms | 401 KiB | 5 Q