3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyDateTime{ public $year, $month, $day, $hour, $minute, $second; public function __debugInfo() { return array( 'date' => $this->year . "-" . $this->month . "-" . $this->day, 'time' => sprintf("%02d:%02d:%02d", $this->hour, $this->minute, $this->second), ); } } $dt = new MyDateTime(); $dt->year = 2014; $dt->month = 9; $dt->day = 20; $dt->hour = 16; $dt->minute = 2; $dt->second = 41; var_dump($dt); ?>

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.0130.00316.63
8.3.50.0080.00822.75
8.3.40.0070.00718.59
8.3.30.0180.00319.21
8.3.20.0090.00020.26
8.3.10.0080.00020.50
8.3.00.0090.00019.25
8.2.180.0120.00316.50
8.2.170.0100.01022.96
8.2.160.0100.00620.52
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0040.00421.04
8.2.110.0080.00020.36
8.2.100.0090.00318.03
8.2.90.0030.00619.40
8.2.80.0080.00017.97
8.2.70.0050.00317.61
8.2.60.0000.00818.04
8.2.50.0000.00818.07
8.2.40.0040.00418.16
8.2.30.0060.00319.50
8.2.20.0040.00417.60
8.2.10.0040.00418.04
8.2.00.0070.00017.67
8.1.280.0150.00325.92
8.1.270.0080.00023.90
8.1.260.0070.00026.35
8.1.250.0000.00828.09
8.1.240.0040.00423.74
8.1.230.0000.01119.00
8.1.220.0040.00417.76
8.1.210.0040.00418.77
8.1.200.0060.00317.48
8.1.190.0040.00417.48
8.1.180.0070.00018.10
8.1.170.0000.00818.50
8.1.160.0030.00621.93
8.1.150.0000.00718.91
8.1.140.0000.00817.43
8.1.130.0030.00317.84
8.1.120.0000.00717.43
8.1.110.0040.00417.38
8.1.100.0000.00717.47
8.1.90.0000.00717.35
8.1.80.0040.00417.28
8.1.70.0040.00417.42
8.1.60.0030.00617.60
8.1.50.0080.00317.58
8.1.40.0040.00417.53
8.1.30.0040.00417.58
8.1.20.0000.00817.63
8.1.10.0040.00417.47
8.1.00.0000.00817.46
8.0.300.0040.00418.77
8.0.290.0000.00816.63
8.0.280.0000.00718.50
8.0.270.0030.00317.17
8.0.260.0000.00617.26
8.0.250.0040.00417.02
8.0.240.0030.00316.82
8.0.230.0070.00016.98
8.0.220.0030.00616.92
8.0.210.0040.00416.80
8.0.200.0000.00616.92
8.0.190.0000.00716.99
8.0.180.0020.00516.86
8.0.170.0030.00516.90
8.0.160.0040.00416.75
8.0.150.0040.00416.81
8.0.140.0050.00316.88
8.0.130.0060.00013.29
8.0.120.0040.00416.91
8.0.110.0000.00816.89
8.0.100.0000.00716.83
8.0.90.0070.00016.86
8.0.80.0070.01416.86
8.0.70.0000.00716.92
8.0.60.0000.00716.90
8.0.50.0050.00216.83
8.0.30.0110.00716.96
8.0.20.0090.00917.40
8.0.10.0000.00716.94
8.0.00.0070.01516.79
7.4.330.0000.00515.00
7.4.320.0030.00316.50
7.4.300.0030.00316.63
7.4.290.0070.00016.63
7.4.280.0000.00816.60
7.4.270.0030.00316.44
7.4.260.0060.00016.48
7.4.250.0000.00816.47
7.4.240.0030.00416.55
7.4.230.0030.00316.39
7.4.220.0130.01316.46
7.4.210.0050.00816.46
7.4.200.0040.00416.40
7.4.160.0030.01316.47
7.4.150.0050.01417.40
7.4.140.0100.00817.86
7.4.130.0050.01316.46
7.4.120.0170.00616.61
7.4.110.0100.00716.43
7.4.100.0120.01216.47
7.4.90.0090.00916.57
7.4.80.0080.01119.39
7.4.70.0140.00416.36
7.4.60.0200.00016.56
7.4.50.0000.00916.40
7.4.40.0030.01316.63
7.4.30.0060.01016.34
7.4.00.0010.01315.05
7.3.330.0030.00213.36
7.3.320.0030.00313.17
7.3.310.0000.00716.41
7.3.300.0000.00616.27
7.3.290.0100.01016.32
7.3.280.0060.00816.34
7.3.270.0030.01517.40
7.3.260.0060.01216.30
7.3.250.0140.00816.31
7.3.240.0110.00616.44
7.3.230.0100.00716.41
7.3.210.0060.01016.43
7.3.200.0170.00319.39
7.3.190.0070.01116.40
7.3.180.0120.01016.65
7.3.170.0130.00916.27
7.3.160.0100.01116.27
7.3.120.0090.00914.93
7.3.110.0100.00814.82
7.3.100.0040.01214.79
7.3.90.0040.00614.83
7.3.80.0060.00814.89
7.3.70.0030.00714.94
7.3.60.0050.01014.69
7.3.50.0020.01014.65
7.3.40.0080.00714.86
7.3.30.0090.00514.61
7.3.20.0090.00516.70
7.3.10.0040.01016.55
7.3.00.0060.00716.60
7.2.330.0110.00716.42
7.2.320.0040.02016.77
7.2.310.0100.00616.85
7.2.300.0070.01116.41
7.2.290.0100.00716.49
7.2.250.0060.01215.03
7.2.240.0050.01515.18
7.2.230.0030.01014.99
7.2.220.0030.00814.84
7.2.210.0030.01114.83
7.2.200.0030.00815.01
7.2.190.0070.01014.95
7.2.180.0070.01015.02
7.2.170.0050.01215.04
7.2.60.0170.00716.66
7.2.00.0070.01019.60
7.1.330.0040.01015.59
7.1.320.0000.01215.76
7.1.310.0050.00915.70
7.1.300.0070.00815.54
7.1.290.0060.00915.69
7.1.280.0050.01015.74
7.1.270.0090.01015.61
7.1.260.0070.00615.65
7.1.200.0040.01115.75
7.1.100.0060.00917.96
7.1.70.0000.00917.19
7.1.60.0100.01619.46
7.1.50.0070.01116.70
7.1.00.0030.07722.57
7.0.200.0040.00416.79
7.0.140.0000.07322.11
7.0.100.0030.08019.89
7.0.90.0000.07319.90
7.0.80.0070.08720.00
7.0.70.0000.05319.89
7.0.60.0200.05719.95
7.0.50.0330.06020.35
7.0.40.0070.04320.08
7.0.30.0070.08320.03
7.0.20.0030.09019.96
7.0.10.0070.04720.08
7.0.00.0170.07020.17
5.6.280.0030.07321.02
5.6.250.0100.04320.66
5.6.240.0100.07720.64
5.6.230.0100.07720.63
5.6.220.0100.06320.71
5.6.210.0130.07320.63
5.6.200.0170.06721.05
5.6.190.0070.07721.04
5.6.180.0100.08321.07
5.6.170.0070.09021.01
5.6.160.0070.06721.05
5.6.150.0030.05321.04
5.6.140.0170.06321.04
5.6.130.0070.06721.09
5.6.120.0070.08321.10
5.6.110.0200.05321.04
5.6.100.0130.03720.90
5.6.90.0030.08321.05
5.6.80.0170.07020.32
5.6.70.0170.04720.43
5.6.60.0130.04020.51
5.6.50.0100.08720.41
5.6.40.0130.06320.30
5.6.30.0070.07320.38
5.6.20.0170.04720.53
5.6.10.0070.08020.31
5.6.00.0030.08320.40
5.5.380.0030.05020.36
5.5.370.0070.04320.37
5.5.360.0030.08320.36
5.5.350.0070.06320.42
5.5.340.0070.07720.90
5.5.330.0070.05320.92
5.5.320.0000.09720.88
5.5.310.0130.07720.91
5.5.300.0130.08020.82
5.5.290.0100.05320.89
5.5.280.0130.07720.92
5.5.270.0070.08020.75
5.5.260.0100.07720.75
5.5.250.0070.06020.68
5.5.240.0070.08020.12
5.5.230.0070.07020.28
5.5.220.0070.05320.02
5.5.210.0100.06720.12
5.5.200.0100.07720.24
5.5.190.0130.04020.26
5.5.180.0100.07020.27
5.5.160.0130.04020.08
5.5.150.0070.04320.18
5.5.140.0030.08020.25
5.5.130.0100.04319.99
5.5.120.0030.04720.17
5.5.110.0000.06020.20
5.5.100.0100.06020.18
5.5.90.0030.05020.15
5.5.80.0070.03720.11
5.5.70.0030.04020.06
5.5.60.0130.03020.00
5.5.50.0030.04720.12
5.5.40.0030.04320.03
5.5.30.0030.04020.03
5.5.20.0030.04719.95
5.5.10.0000.03720.13
5.5.00.0070.03720.08
5.4.450.0200.05719.54
5.4.440.0100.07719.48
5.4.430.0100.06719.55
5.4.420.0070.04019.44
5.4.410.0030.06719.38
5.4.400.0070.07319.14
5.4.390.0070.07018.88
5.4.380.0030.04719.03
5.4.370.0130.06719.23
5.4.360.0030.05019.05
5.4.350.0030.07319.16
5.4.340.0070.07319.14
5.4.320.0070.07719.03
5.4.310.0170.07019.05
5.4.300.0100.05319.09
5.4.290.0070.07019.18
5.4.280.0070.07719.13
5.4.270.0000.07019.03
5.4.260.0070.06719.03
5.4.250.0100.03318.84
5.4.240.0030.03719.13
5.4.230.0000.04719.23
5.4.220.0100.03019.04
5.4.210.0170.02319.17
5.4.200.0100.03019.04
5.4.190.0000.04019.24
5.4.180.0070.04019.02
5.4.170.0100.03318.89
5.4.160.0000.04019.17
5.4.150.0000.03319.01
5.4.140.0030.03716.37
5.4.130.0030.03716.41
5.4.120.0030.03716.19
5.4.110.0000.04016.39
5.4.100.0070.03316.46
5.4.90.0070.03316.32
5.4.80.0100.03016.48
5.4.70.0000.04016.36
5.4.60.0100.03016.39
5.4.50.0000.03316.43
5.4.40.0030.03716.42
5.4.30.0000.04016.31
5.4.20.0070.03316.35
5.4.10.0030.03316.24
5.4.00.0030.03715.85
5.3.290.0070.07314.61
5.3.280.0000.04314.55
5.3.270.0000.04014.67
5.3.260.0030.04014.54
5.3.250.0070.02714.70
5.3.240.0000.03714.69
5.3.230.0130.02314.61
5.3.220.0000.04014.50
5.3.210.0000.04014.66
5.3.200.0070.03314.49
5.3.190.0070.03714.63
5.3.180.0000.04014.52
5.3.170.0030.03714.63
5.3.160.0100.03714.59
5.3.150.0070.03014.59
5.3.140.0030.03714.50
5.3.130.0000.03314.63
5.3.120.0000.03714.55
5.3.110.0070.02714.48
5.3.100.0000.04014.06
5.3.90.0000.03714.16
5.3.80.0100.02713.90
5.3.70.0000.03714.11
5.3.60.0070.03314.09
5.3.50.0030.03013.99
5.3.40.0000.03314.00
5.3.30.0070.02713.89
5.3.20.0070.03013.62
5.3.10.0030.03313.70
5.3.00.0030.02713.76
5.2.170.0030.03013.24
5.2.160.0000.03013.24
5.2.150.0070.02713.24
5.2.140.0130.03313.24
5.2.130.0000.05313.24
5.2.120.0000.03313.24
5.2.110.0030.02713.24
5.2.100.0000.03013.24
5.2.90.0000.03013.24
5.2.80.0000.03013.24
5.2.70.0000.03313.24
5.2.60.0000.03713.24
5.2.50.0030.02713.24
5.2.40.0000.03013.24
5.2.30.0000.03013.24
5.2.20.0030.04013.24
5.2.10.0000.03013.24
5.2.00.0000.03013.24
5.1.60.0030.02713.24
5.1.50.0070.03313.24
5.1.40.0030.05313.24
5.1.30.0030.05313.24
5.1.20.0070.04713.24
5.1.10.0030.02713.24
5.1.00.0030.02713.24
5.0.50.0000.03713.24
5.0.40.0000.02313.24
5.0.30.0030.06713.24
5.0.20.0000.04013.24
5.0.10.0030.04713.24
5.0.00.0030.06713.24
4.4.90.0030.01313.24
4.4.80.0030.01713.24
4.4.70.0000.01713.24
4.4.60.0030.01313.24
4.4.50.0000.01713.24
4.4.40.0030.02013.24
4.4.30.0000.03013.24
4.4.20.0000.02013.24
4.4.10.0070.01313.24
4.4.00.0100.02313.24
4.3.110.0030.03313.24
4.3.100.0030.03313.24
4.3.90.0000.03713.24
4.3.80.0070.03713.24
4.3.70.0000.03013.24
4.3.60.0000.02313.24
4.3.50.0070.02713.24
4.3.40.0000.02313.24
4.3.30.0030.02313.24
4.3.20.0030.02313.24
4.3.10.0030.03713.24
4.3.00.0030.03713.24

preferences:
50.17 ms | 401 KiB | 5 Q