3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Something { public $nothing; public function hasThingie() { return $this->nothing === null; } public function setThingie() { $this->nothing = 'thingy'; } } $thing = new Something; var_dump($this->hasThingie()); $this->setThingie(); var_dump($this->hasThingie());

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.0100.01018.97
8.3.30.0120.00319.08
8.3.20.0040.00420.34
8.3.10.0070.00023.48
8.3.00.0080.00020.88
8.2.170.0140.00322.96
8.2.160.0070.00720.47
8.2.150.0000.00724.18
8.2.140.0040.00424.66
8.2.130.0070.01026.16
8.2.120.0050.00319.23
8.2.110.0080.00022.15
8.2.100.0040.00718.09
8.2.90.0080.00019.05
8.2.80.0050.00317.97
8.2.70.0090.00017.50
8.2.60.0030.00717.93
8.2.50.0060.00318.07
8.2.40.0060.00319.82
8.2.30.0020.00518.11
8.2.20.0030.00517.77
8.2.10.0070.00018.07
8.2.00.0000.00817.70
8.1.270.0050.00323.84
8.1.260.0070.00026.35
8.1.250.0000.00828.09
8.1.240.0060.00323.79
8.1.230.0060.00619.20
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0000.00917.36
8.1.190.0000.00817.23
8.1.180.0000.00818.10
8.1.170.0050.00318.46
8.1.160.0040.00421.92
8.1.150.0040.00418.46
8.1.140.0040.00417.45
8.1.130.0000.00717.84
8.1.120.0000.00717.38
8.1.110.0070.00417.29
8.1.100.0070.00017.30
8.1.90.0000.00717.36
8.1.80.0040.00417.38
8.1.70.0000.00717.31
8.1.60.0040.00817.55
8.1.50.0000.00817.53
8.1.40.0040.00417.51
8.1.30.0060.00317.68
8.1.20.0040.00417.64
8.1.10.0000.00717.56
8.1.00.0000.00717.46
8.0.300.0030.00518.77
8.0.290.0070.00016.63
8.0.280.0070.00018.30
8.0.270.0040.00417.13
8.0.260.0030.00317.19
8.0.250.0040.00417.01
8.0.240.0000.00916.93
8.0.230.0000.00716.93
8.0.220.0000.00716.95
8.0.210.0030.00316.84
8.0.200.0060.00017.02
8.0.190.0030.00316.94
8.0.180.0000.00716.95
8.0.170.0050.00316.93
8.0.160.0000.00716.91
8.0.150.0040.00416.91
8.0.140.0000.00816.93
8.0.130.0050.00013.31
8.0.120.0000.00816.94
8.0.110.0080.00016.92
8.0.100.0050.00316.92
8.0.90.0030.00516.93
8.0.80.0100.00716.86
8.0.70.0040.00416.80
8.0.60.0070.00216.97
8.0.50.0000.00716.95
8.0.30.0150.00617.12
8.0.20.0090.01117.40
8.0.10.0070.00017.07
8.0.00.0120.00616.72
7.4.330.0000.00615.09
7.4.320.0000.00716.60
7.4.300.0000.00716.45
7.4.290.0000.00616.60
7.4.280.0030.00316.62
7.4.270.0000.00716.55
7.4.260.0000.00716.58
7.4.250.0040.00416.48
7.4.240.0000.00716.54
7.4.230.0000.00716.72
7.4.220.0150.00416.46
7.4.210.0120.00316.55
7.4.200.0000.00716.43
7.4.160.0120.00616.50
7.4.150.0070.01017.40
7.4.140.0120.00717.86
7.4.130.0090.00816.46
7.4.120.0030.01316.46
7.4.110.0070.01016.70
7.4.100.0080.00816.32
7.4.90.0130.01016.46
7.4.80.0140.00619.39
7.4.70.0120.01016.54
7.4.60.0090.00816.48
7.4.50.0040.00416.30
7.4.40.0160.00016.49
7.4.30.0110.00516.55
7.4.00.0000.01414.88
7.3.330.0000.00513.17
7.3.320.0020.00213.30
7.3.310.0000.00616.29
7.3.300.0040.00416.15
7.3.290.0100.00616.27
7.3.280.0130.00516.30
7.3.270.0150.00917.40
7.3.260.0110.01116.35
7.3.250.0080.01116.32
7.3.240.0080.00816.59
7.3.230.0110.01516.47
7.3.210.0130.00316.29
7.3.200.0040.01119.39
7.3.190.0150.00616.42
7.3.180.0080.00816.53
7.3.170.0030.01316.50
7.3.160.0100.00616.23
7.3.120.0050.01014.94
7.3.110.0070.01014.49
7.3.100.0040.01114.73
7.3.90.0070.00714.71
7.3.80.0000.00914.56
7.3.70.0070.00714.79
7.3.60.0060.00914.73
7.3.50.0000.01214.89
7.3.40.0040.00814.82
7.3.30.0000.01114.80
7.3.20.0120.00316.76
7.3.10.0120.00316.35
7.3.00.0040.00416.39
7.2.330.0030.01416.28
7.2.320.0030.01816.66
7.2.310.0090.00816.54
7.2.300.0170.00016.65
7.2.290.0130.00316.66
7.2.250.0100.00714.97
7.2.240.0120.00914.79
7.2.230.0000.00914.84
7.2.220.0080.00314.98
7.2.210.0070.01015.13
7.2.200.0120.00314.75
7.2.190.0090.00614.85
7.2.180.0060.00914.98
7.2.170.0060.00614.93
7.2.60.0000.01216.87
7.2.00.0040.01219.27
7.1.330.0070.00715.30
7.1.320.0070.00715.46
7.1.310.0110.00415.68
7.1.300.0040.00715.54
7.1.290.0040.00815.79
7.1.280.0000.01115.62
7.1.270.0030.01015.39
7.1.260.0040.01115.39
7.1.200.0000.00915.68
7.1.70.0100.00617.04
7.1.60.0040.00817.18
7.1.50.0040.01816.80
7.1.00.0030.07722.44
7.0.200.0060.00916.38
7.0.140.0030.07322.15
7.0.60.0070.08319.89
7.0.50.0100.08017.84
7.0.40.0030.05320.10
7.0.30.0300.05020.16
7.0.20.0300.03320.24
7.0.10.0030.05020.19
7.0.00.0070.06020.22
5.6.280.0070.07020.91
5.6.210.0100.07720.77
5.6.200.0070.03718.16
5.6.190.0000.04720.41
5.6.180.0230.05020.42
5.6.170.0370.07720.59
5.6.160.0070.04020.55
5.6.150.0030.05718.19
5.6.140.0030.07718.28
5.6.130.0070.08018.13
5.6.120.0070.07720.92
5.6.110.0070.07021.04
5.6.100.0170.07321.11
5.6.90.0030.08720.88
5.6.80.0000.04320.48
5.5.350.0000.03720.36
5.5.340.0070.08018.04
5.5.330.0100.08320.19
5.5.320.0100.07720.27
5.5.310.0330.05720.34
5.5.300.0000.09017.98
5.5.290.0030.07317.95
5.5.280.0030.04320.88
5.5.270.0130.06720.79
5.5.260.0070.07720.73
5.5.250.0100.06020.69
5.5.240.0030.07320.27
5.4.450.0330.07019.58
5.4.440.0270.04719.54
5.4.430.0230.04319.46
5.4.420.0270.04719.64
5.4.410.0230.06019.05
5.4.400.0300.04319.16
5.4.390.0270.07318.94
5.4.380.0370.06319.22
5.4.370.0330.07318.99
5.4.360.0370.06319.24
5.4.350.0270.07319.09
5.4.340.0330.05719.06
5.4.320.0230.05019.16
5.4.310.0300.03018.95
5.4.300.0370.06319.13
5.4.290.0270.04719.16
5.4.280.0330.07019.34
5.4.270.0270.04719.22
5.4.260.0330.04719.09
5.4.250.0300.03019.23
5.4.240.0230.05019.23
5.4.230.0370.06319.19
5.4.220.0270.08019.09
5.4.210.0330.05318.94
5.4.200.0270.06019.14
5.4.190.0330.04719.23
5.4.180.0370.06318.98
5.4.170.0270.04319.13
5.4.160.0400.03718.85
5.4.150.0300.07019.13
5.4.140.0270.04716.68
5.4.130.0270.05016.38
5.4.120.0370.06716.45
5.4.110.0300.06016.41
5.4.100.0430.04016.19
5.4.90.0300.03316.45
5.4.80.0270.04716.26
5.4.70.0270.06316.43
5.4.60.0270.04316.49
5.4.50.0370.05716.59
5.4.40.0300.03016.53
5.4.30.0230.03716.55
5.4.20.0370.05316.52
5.4.10.0330.06716.42
5.4.00.0370.05715.96
5.3.290.0270.03314.74
5.3.280.0300.07014.59
5.3.270.0270.04714.68
5.3.260.0300.07314.82
5.3.250.0400.06014.72
5.3.240.0370.07014.59
5.3.230.0370.06014.67
5.3.220.0300.06014.54
5.3.210.0300.07314.47
5.3.200.0300.04314.58
5.3.190.0270.04714.54
5.3.180.0300.06314.53
5.3.170.0300.04314.49
5.3.160.0270.04314.67
5.3.150.0200.04014.66
5.3.140.0230.04014.63
5.3.130.0270.05314.44
5.3.120.0330.07314.45
5.3.110.0270.05014.63
5.3.100.0330.06314.13
5.3.90.0300.04314.18
5.3.80.0270.04314.25
5.3.70.0230.06313.92
5.3.60.0330.05014.14
5.3.50.0270.04713.96
5.3.40.0330.05713.86
5.3.30.0270.03714.07
5.3.20.0330.05713.60
5.3.10.0270.06013.68
5.3.00.0300.04013.64
5.2.170.0200.03312.10
5.2.160.0300.05312.10
5.2.150.0370.05312.10
5.2.140.0200.04012.10
5.2.130.0200.03712.10
5.2.120.0200.03312.10
5.2.110.0230.03712.10
5.2.100.0230.06012.10
5.2.90.0300.04712.10
5.2.80.0370.05312.10
5.2.70.0400.03012.10
5.2.60.0270.04312.10
5.2.50.0200.04312.10
5.2.40.0200.05012.10
5.2.30.0270.04312.10
5.2.20.0270.05312.10
5.2.10.0170.05012.10
5.2.00.0200.03712.10
5.1.60.0230.05012.10
5.1.50.0270.04712.10
5.1.40.0270.03712.10
5.1.30.0170.05012.10
5.1.20.0230.05012.10
5.1.10.0230.04712.10
5.1.00.0200.05312.10
5.0.50.0200.02712.10
5.0.40.0100.04012.10
5.0.30.0100.05012.10
5.0.20.0100.04312.10
5.0.10.0130.04012.10
5.0.00.0130.06312.10
4.4.90.0130.02312.10
4.4.80.0070.02312.10
4.4.70.0100.02312.10
4.4.60.0100.01712.10
4.4.50.0100.01712.10
4.4.40.0100.04012.10
4.4.30.0130.03312.10
4.4.20.0130.02712.10
4.4.10.0100.03712.10
4.4.00.0070.05712.10
4.3.110.0070.03712.10
4.3.100.0070.02712.10
4.3.90.0130.03012.10
4.3.80.0100.05312.10
4.3.70.0100.02012.10
4.3.60.0130.01712.10
4.3.50.0100.03312.10
4.3.40.0100.04312.10
4.3.30.0030.02312.10
4.3.20.0100.01712.10
4.3.10.0030.04012.10
4.3.00.0070.02712.10

preferences:
41.99 ms | 400 KiB | 5 Q