3v4l.org

run code in 300+ PHP versions simultaneously
<?php class GetInfo { public $name; function __construct($name) { $this->name = $name; $name = strtoupper($name); return $name . ' is my name'; } } echo new GetInfo('Ivan'); //echo $a->__construct('Ivan');

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.0080.00818.96
8.3.30.0070.00718.54
8.3.20.0040.00420.20
8.3.10.0040.00423.61
8.3.00.0080.00019.78
8.2.170.0120.00622.96
8.2.160.0110.00420.45
8.2.150.0050.00325.66
8.2.140.0110.00424.66
8.2.130.0070.00426.16
8.2.120.0030.00617.59
8.2.110.0030.00619.31
8.2.100.0080.00417.97
8.2.90.0040.00419.05
8.2.80.0040.00417.97
8.2.70.0070.00317.50
8.2.60.0000.00818.04
8.2.50.0040.00418.07
8.2.40.0000.00819.34
8.2.30.0000.00819.72
8.2.20.0050.00317.64
8.2.10.0070.00018.11
8.2.00.0060.00317.93
8.1.270.0090.00620.38
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0080.00023.98
8.1.230.0090.00317.45
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.36
8.1.190.0060.00317.22
8.1.180.0000.00718.10
8.1.170.0000.00718.59
8.1.160.0040.00421.86
8.1.150.0040.00418.78
8.1.140.0030.00517.43
8.1.130.0000.00817.64
8.1.120.0080.00017.34
8.1.110.0000.00817.45
8.1.100.0040.00417.29
8.1.90.0040.00417.40
8.1.80.0040.00417.41
8.1.70.0070.00017.38
8.1.60.0040.00417.54
8.1.50.0050.00217.54
8.1.40.0000.00917.54
8.1.30.0050.00317.53
8.1.20.0040.00417.62
8.1.10.0000.00717.49
8.1.00.0040.00417.51
8.0.300.0040.00418.77
8.0.290.0040.00416.88
8.0.280.0000.00718.36
8.0.270.0040.00417.20
8.0.260.0050.00317.26
8.0.250.0050.00317.02
8.0.240.0050.00317.00
8.0.230.0000.00716.91
8.0.220.0030.00516.85
8.0.210.0030.00516.96
8.0.200.0040.00417.02
8.0.190.0030.00716.93
8.0.180.0070.00316.93
8.0.170.0080.00016.90
8.0.160.0050.00216.84
8.0.150.0000.00817.03
8.0.140.0070.00016.91
8.0.130.0060.00013.42
8.0.120.0000.00816.96
8.0.110.0000.00816.88
8.0.100.0040.00416.93
8.0.90.0050.00316.80
8.0.80.0130.00716.93
8.0.70.0020.00516.82
8.0.60.0070.00017.02
8.0.50.0070.00016.90
8.0.30.0080.00917.18
8.0.20.0130.00517.41
8.0.10.0040.00316.84
8.0.00.0110.01016.78
7.4.330.0000.00515.08
7.4.320.0000.00716.46
7.4.300.0030.00316.49
7.4.290.0000.00716.57
7.4.280.0000.00716.54
7.4.270.0000.00616.61
7.4.260.0050.00216.48
7.4.250.0080.00016.58
7.4.240.0020.00516.53
7.4.230.0030.00316.44
7.4.220.0130.00716.68
7.4.210.0090.00616.60
7.4.200.0040.00416.34
7.4.160.0070.01016.60
7.4.150.0040.01417.40
7.4.140.0050.01317.86
7.4.130.0040.01416.54
7.4.120.0130.00616.51
7.4.110.0070.01016.65
7.4.100.0110.00616.70
7.4.90.0030.01316.56
7.4.80.0070.01519.39
7.4.70.0070.01016.54
7.4.60.0100.00616.50
7.4.50.0030.00516.54
7.4.40.0060.01016.49
7.4.30.0120.01316.57
7.4.00.0060.01015.02
7.3.330.0050.00213.27
7.3.320.0000.00913.33
7.3.310.0030.00516.28
7.3.300.0000.00716.35
7.3.290.0100.00516.29
7.3.280.0080.01316.32
7.3.270.0070.01017.40
7.3.260.0120.00616.21
7.3.250.0110.00916.43
7.3.240.0100.00716.34
7.3.230.0070.01116.52
7.3.210.0100.01016.39
7.3.200.0120.00416.31
7.3.190.0100.00616.46
7.3.180.0060.01016.55
7.3.170.0170.00016.31
7.3.160.0120.00916.50
7.3.120.0060.00814.81
7.3.110.0070.00614.83
7.3.100.0030.01014.90
7.3.90.0060.00914.88
7.3.80.0020.00814.77
7.3.70.0070.01014.63
7.3.60.0040.00714.80
7.3.50.0030.00814.78
7.3.40.0050.00714.80
7.3.30.0040.01014.68
7.3.20.0080.00516.53
7.3.10.0100.00516.47
7.3.00.0100.00616.47
7.2.330.0070.01016.52
7.2.320.0090.01016.50
7.2.310.0080.00816.75
7.2.300.0090.00916.44
7.2.290.0080.01116.41
7.2.250.0070.00614.93
7.2.240.0100.00714.80
7.2.230.0070.00714.77
7.2.220.0020.01115.19
7.2.210.0090.00515.06
7.2.200.0020.01414.98
7.2.190.0090.00614.96
7.2.180.0000.01314.99
7.2.170.0070.00414.98
7.2.130.0070.00816.59
7.2.120.0150.00516.39
7.2.110.0090.01016.77
7.2.100.0080.00716.44
7.2.90.0120.00816.71
7.2.80.0120.01016.81
7.2.70.0100.00716.59
7.2.60.0050.01216.63
7.2.50.0100.00516.66
7.2.40.0060.00816.77
7.2.30.0100.00816.63
7.2.20.0110.00616.71
7.2.10.0090.00616.62
7.2.00.0080.00717.63
7.1.330.0100.00515.76
7.1.320.0020.00615.68
7.1.310.0020.01315.68
7.1.300.0080.00515.68
7.1.290.0040.00815.85
7.1.280.0040.00815.54
7.1.270.0030.00915.70
7.1.260.0100.00515.59
7.1.250.0070.00615.69
7.1.200.0040.00815.87
7.1.100.0110.00417.98
7.1.70.0080.00017.27
7.1.60.0110.01119.12
7.1.50.0130.00416.91
7.1.00.0130.07022.45
7.0.200.0170.00316.81
7.0.60.0100.08320.03
7.0.50.0030.04017.83
7.0.40.0100.08020.25
7.0.30.0130.04720.08
7.0.20.0300.08020.07
7.0.10.0030.08320.11
7.0.00.0070.04020.32
5.6.280.0030.07321.15
5.6.210.0000.08720.70
5.6.200.0070.05318.25
5.6.190.0030.09020.60
5.6.180.0530.03320.51
5.6.170.0330.07020.47
5.6.160.0170.07320.41
5.6.150.0030.04018.20
5.6.140.0070.03718.17
5.6.130.0130.07318.28
5.6.120.0100.04021.00
5.6.110.0030.09020.98
5.6.100.0100.08321.01
5.6.90.0170.07721.00
5.6.80.0070.08020.41
5.6.70.0270.06720.48
5.5.350.0300.07720.30
5.5.340.0070.07717.98
5.5.330.0070.03720.44
5.5.320.0100.08320.27
5.5.310.0200.04720.27
5.5.300.0100.08018.02
5.5.290.0000.06317.92
5.5.280.0100.07720.74
5.5.270.0170.07720.77
5.5.260.0070.08720.80
5.5.250.0100.07020.59
5.5.240.0170.08020.16
5.4.450.0300.08319.46
5.4.440.0330.04719.45
5.4.430.0230.04319.52
5.4.420.0170.05019.63
5.4.410.0400.05319.25
5.4.400.0400.02719.16
5.4.390.0200.04319.22
5.4.380.0270.04319.22
5.4.370.0200.04319.16
5.4.360.0370.06719.15
5.4.350.0430.04719.20
5.4.340.0430.06018.98
5.4.320.0330.05319.23
5.4.310.0370.05018.84
5.4.300.0370.03319.23
5.4.290.0170.04719.21
5.4.280.0370.04319.06
5.4.270.0270.03319.08
5.4.260.0200.04019.21
5.4.250.0230.03719.29
5.4.240.0230.03719.08
5.4.230.0270.04719.21
5.4.220.0230.04319.08
5.4.210.0230.03718.99
5.4.200.0270.04719.15
5.4.190.0470.02319.05
5.4.180.0200.04018.86
5.4.170.0230.03719.21
5.4.160.0200.04019.12
5.4.150.0200.04019.04
5.4.140.0300.03016.52
5.4.130.0270.03316.32
5.4.120.0230.04716.50
5.4.110.0330.03316.55
5.4.100.0200.03716.19
5.4.90.0230.03716.36
5.4.80.0230.03716.36

preferences:
68.5 ms | 400 KiB | 5 Q