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($thing->hasThingie()); $thing->setThingie(); var_dump($thing->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.60.0120.00318.30
8.3.50.0040.01421.14
8.3.40.0090.00618.67
8.3.30.0000.01620.21
8.3.20.0060.00320.38
8.3.10.0040.00421.92
8.3.00.0040.00422.18
8.2.180.0040.01518.41
8.2.170.0130.00322.96
8.2.160.0130.00722.04
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0080.00020.73
8.2.110.0080.00022.07
8.2.100.0060.00617.55
8.2.90.0030.00619.05
8.2.80.0040.00419.25
8.2.70.0000.00917.25
8.2.60.0050.00317.80
8.2.50.0030.00618.07
8.2.40.0030.00718.09
8.2.30.0070.00019.44
8.2.20.0040.00417.61
8.2.10.0040.00417.69
8.2.00.0000.00817.67
8.1.280.0070.00725.92
8.1.270.0040.00423.99
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00323.82
8.1.230.0030.00719.10
8.1.220.0000.00917.74
8.1.210.0050.00318.77
8.1.200.0000.01017.22
8.1.190.0030.00517.43
8.1.180.0070.00318.10
8.1.170.0040.00418.34
8.1.160.0000.00718.84
8.1.150.0000.01018.59
8.1.140.0040.00417.39
8.1.130.0000.00717.76
8.1.120.0040.00417.33
8.1.110.0020.00517.40
8.1.100.0070.00017.31
8.1.90.0000.00717.42
8.1.80.0070.00017.32
8.1.70.0030.00317.36
8.1.60.0070.00017.55
8.1.50.0080.00017.55
8.1.40.0000.00717.44
8.1.30.0040.00417.46
8.1.20.0090.00017.54
8.1.10.0040.00417.54
8.1.00.0080.00017.46
8.0.300.0040.00418.77
8.0.290.0070.00017.18
8.0.280.0000.00718.40
8.0.270.0000.00717.12
8.0.260.0090.00016.68
8.0.250.0050.00216.94
8.0.240.0040.00416.79
8.0.230.0030.00316.91
8.0.220.0030.00316.70
8.0.210.0000.00816.91
8.0.200.0000.00616.85
8.0.190.0040.00416.93
8.0.180.0040.00416.90
8.0.170.0000.00816.77
8.0.160.0000.00716.77
8.0.150.0000.00816.66
8.0.140.0040.00416.79
8.0.130.0050.00013.24
8.0.120.0040.00416.80
8.0.110.0070.00016.73
8.0.100.0000.00716.75
8.0.90.0070.00016.74
8.0.80.0110.00716.83
8.0.70.0030.00516.87
8.0.60.0080.00016.89
8.0.50.0070.00016.71
8.0.30.0160.00516.91
8.0.20.0150.00517.40
8.0.10.0060.00317.00
8.0.00.0110.00816.66
7.4.330.0020.00215.13
7.4.320.0030.00316.62
7.4.300.0030.00316.54
7.4.290.0030.00516.64
7.4.280.0000.00716.37
7.4.270.0060.00316.62
7.4.260.0050.00013.33
7.4.250.0030.00516.50
7.4.240.0020.00516.64
7.4.230.0000.00716.36
7.4.220.0120.00916.56
7.4.210.0050.01116.54
7.4.200.0030.00316.41
7.4.190.0030.00316.33
7.4.160.0030.01516.67
7.4.150.0070.01017.40
7.4.140.0080.01317.86
7.4.130.0080.00916.45
7.4.120.0120.00516.63
7.4.110.0070.01016.47
7.4.100.0090.00816.43
7.4.90.0080.01216.60
7.4.80.0060.01019.39
7.4.70.0080.00816.36
7.4.60.0120.00316.42
7.4.50.0050.00316.33
7.4.40.0030.01322.77
7.4.30.0100.00716.53
7.4.00.0100.00714.49
7.3.330.0050.00013.17
7.3.320.0000.00513.29
7.3.310.0060.00016.35
7.3.300.0030.00316.14
7.3.290.0100.00316.24
7.3.280.0040.01316.30
7.3.270.0080.00917.40
7.3.260.0090.00916.49
7.3.250.0110.00716.42
7.3.240.0030.01316.42
7.3.230.0210.00316.57
7.3.210.0110.00716.30
7.3.200.0120.00619.39
7.3.190.0030.01416.36
7.3.180.0170.00016.48
7.3.170.0060.01216.53
7.3.160.0080.00816.25
7.3.120.0030.01414.76
7.2.330.0100.00716.53
7.2.320.0070.01116.65
7.2.310.0140.00716.79
7.2.300.0090.00916.46
7.2.290.0090.00616.52
7.2.00.0030.00919.35
7.1.100.0090.00318.18
7.1.70.0100.00717.20
7.1.60.0070.01419.18
7.1.50.0140.01116.92
7.1.00.0000.04722.43
7.0.200.0040.00416.75
7.0.140.0030.07021.99
7.0.60.0030.06019.96
7.0.50.0070.03717.88
7.0.40.0100.08320.02
7.0.30.0270.08020.10
7.0.20.0370.07720.07
7.0.10.0070.04720.33
7.0.00.0000.06020.07
5.6.210.0130.06320.72
5.6.200.0030.08718.29
5.6.190.0170.06720.53
5.6.180.0300.04720.55
5.6.170.0230.08020.44
5.6.160.0070.07720.52
5.6.150.0000.04018.27
5.6.140.0070.06018.23
5.6.130.0070.08718.18
5.6.120.0030.04321.00
5.6.110.0130.07721.14
5.6.100.0170.07321.00
5.6.90.0000.04720.96
5.6.80.0030.07720.36
5.5.350.0270.07720.41
5.5.340.0000.05018.03
5.5.330.0030.08720.42
5.5.320.0030.09020.25
5.5.310.0230.08720.37
5.5.300.0130.06717.98
5.5.290.0030.08317.95
5.5.280.0030.04020.80
5.5.270.0100.06720.73
5.5.260.0030.08720.65
5.5.250.0070.04320.71
5.5.240.0330.06720.15
5.4.450.3730.04019.50
5.4.440.3930.03719.64
5.4.430.3570.04319.41
5.4.420.3630.04319.54
5.4.410.4100.04719.41
5.4.400.3600.03719.09
5.4.390.3700.03718.98
5.4.380.3670.03719.22
5.4.370.3770.03719.14
5.4.360.3930.03318.99
5.4.350.3830.04019.06
5.4.340.3900.03719.09
5.4.320.3770.04319.24
5.4.310.3570.04319.22
5.4.300.3630.03319.13
5.4.290.3870.04018.95
5.4.280.3900.04019.08
5.4.270.3970.04019.08
5.4.260.0070.05319.15
5.4.250.0030.05019.09
5.4.240.3670.03318.98
5.4.230.4170.04319.23
5.4.220.3600.05319.15
5.4.210.3900.03718.98
5.4.200.3770.04319.08
5.4.190.3800.04319.07
5.4.180.3770.04318.86
5.4.170.3770.03719.15
5.4.160.3900.03719.29
5.4.150.3900.03718.83
5.4.140.3870.04016.30
5.4.130.3870.03316.45
5.4.120.3400.03716.35
5.4.110.3500.03716.54
5.4.100.3670.03016.28
5.4.90.3730.02316.45
5.4.80.3100.03716.26
5.4.70.3730.03016.27
5.4.60.3630.03716.43
5.4.50.3500.03716.37
5.4.40.3530.03716.43
5.4.30.3900.03016.37
5.4.20.3530.03716.37
5.4.10.3830.03716.53
5.4.00.3900.03315.83
5.3.290.3470.03314.82
5.3.280.3970.03314.57
5.3.270.3930.04014.61
5.3.260.3770.03314.68
5.3.250.3870.04014.69
5.3.240.3870.03314.61
5.3.230.3370.03714.60
5.3.220.3930.03314.80
5.3.210.3970.04014.63
5.3.200.3670.03314.68
5.3.190.4570.04314.49
5.3.180.3630.03314.47
5.3.170.3600.04714.64
5.3.160.3600.04014.68
5.3.150.3730.02714.47
5.3.140.3670.03714.63
5.3.130.3330.04014.47
5.3.120.3830.04014.59
5.3.110.3900.03714.54
5.3.100.3730.03314.15
5.3.90.4170.04314.01
5.3.80.3500.03714.03
5.3.70.3830.03713.93
5.3.60.3630.03013.93
5.3.50.3930.03713.96
5.3.40.3770.04013.96
5.3.30.2800.03713.83
5.3.20.3730.03313.61
5.3.10.2570.03313.57
5.3.00.2970.05013.73
5.2.170.3470.03311.38
5.2.160.3300.03011.25
5.2.150.3670.02711.05
5.2.140.2070.02311.11
5.2.130.3270.02311.12
5.2.120.2570.03311.09
5.2.110.3100.03311.02
5.2.100.2130.03011.08
5.2.90.2800.03011.19
5.2.80.2800.02711.07
5.2.70.2030.02711.26
5.2.60.3000.02311.13
5.2.50.3030.03311.11
5.2.40.1900.03311.22
5.2.30.2200.02710.95
5.2.20.2030.03310.93
5.2.10.2600.03710.87
5.2.00.2670.02710.86
5.1.60.2670.02310.86
5.1.50.2530.02310.86
5.1.40.2470.02710.86
5.1.30.2200.02710.86
5.1.20.2430.02310.86
5.1.10.2330.02710.86
5.1.00.0970.02710.86
5.0.50.1170.01710.86
5.0.40.1030.02010.86
5.0.30.0770.03310.86
5.0.20.1130.02010.86
5.0.10.0700.02010.86
5.0.00.1030.03010.86
4.4.90.1300.01310.86
4.4.80.1270.01710.86
4.4.70.0230.03010.86
4.4.60.0900.02310.86
4.4.50.0970.01010.86
4.4.40.1330.02310.86
4.4.30.1170.01710.86
4.4.20.1700.01710.86
4.4.10.1100.02010.86
4.4.00.0870.03710.86
4.3.110.1500.02010.86
4.3.100.1300.02010.86
4.3.90.1330.01310.86
4.3.80.1230.02710.86
4.3.70.0730.01310.86
4.3.60.1570.01310.86
4.3.50.1230.02010.86
4.3.40.1470.02310.86
4.3.30.0700.01710.86
4.3.20.0770.02010.86
4.3.10.0430.01310.86
4.3.00.0430.02010.86

preferences:
44.93 ms | 401 KiB | 5 Q