3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test { protected $tag = 'test'; protected $tags_test; public function save($tags) { $_tag = "tags_{$this->tag}"; $this->{"tags_{$this->tag}"} = $tags; var_dump($this->$_tag); } } $test = new test(); $test->save(2322323); $t = true; $t &= false; $t &= true; $t &= false; var_dump($t); echo mime_content_type('test.php'); //var_dump(pathinfo('FilLe.DoC'));

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.0110.01118.68
8.3.50.0140.00618.34
8.3.40.0080.00818.70
8.3.30.0070.00718.73
8.3.20.0050.00220.21
8.3.10.0050.00321.91
8.3.00.0030.00619.25
8.2.180.0070.01418.66
8.2.170.0110.01422.96
8.2.160.0130.00320.46
8.2.150.0030.00524.18
8.2.140.0000.00824.66
8.2.130.0040.00422.21
8.2.120.0080.00026.35
8.2.110.0000.01020.43
8.2.100.0040.00717.84
8.2.90.0040.00419.27
8.2.80.0080.00017.97
8.2.70.0030.00517.50
8.2.60.0060.00318.16
8.2.50.0000.00818.16
8.2.40.0040.00420.59
8.2.30.0050.00319.31
8.2.20.0040.00418.11
8.2.10.0040.00418.24
8.2.00.0000.00818.37
8.1.280.0170.00325.92
8.1.270.0090.00020.30
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0100.00023.98
8.1.230.0040.00717.70
8.1.220.0000.00817.74
8.1.210.0030.00718.77
8.1.200.0060.00317.13
8.1.190.0040.00417.22
8.1.180.0080.00018.10
8.1.170.0030.00518.71
8.1.160.0040.00419.02
8.1.150.0080.00018.81
8.1.140.0060.00317.78
8.1.130.0040.00420.64
8.1.120.0000.00717.52
8.1.110.0020.00517.46
8.1.100.0000.00817.33
8.1.90.0000.00817.50
8.1.80.0080.00017.49
8.1.70.0000.00717.46
8.1.60.0030.00617.52
8.1.50.0000.00817.50
8.1.40.0080.00017.55
8.1.30.0080.00017.65
8.1.20.0040.00417.66
8.1.10.0040.00417.50
8.1.00.0030.00717.59
8.0.300.0050.00318.77
8.0.290.0050.00316.75
8.0.280.0000.00718.54
8.0.270.0000.00717.19
8.0.260.0030.00318.39
8.0.250.0030.00317.05
8.0.240.0000.00716.95
8.0.230.0040.00416.95
8.0.220.0000.00717.00
8.0.210.0020.00516.98
8.0.200.0000.00717.00
8.0.190.0040.00417.07
8.0.180.0000.00716.98
8.0.170.0090.00016.99
8.0.160.0000.00716.84
8.0.150.0040.00416.80
8.0.140.0080.00016.94
8.0.130.0030.00313.35
8.0.120.0050.00316.82
8.0.110.0040.00416.87
8.0.100.0040.00416.96
8.0.90.0040.00416.96
8.0.80.0160.00516.88
8.0.70.0000.00716.96
8.0.60.0040.00417.04
8.0.50.0030.00516.92
8.0.30.0090.00816.99
8.0.20.0090.01017.42
8.0.10.0000.00817.00
8.0.00.0100.00916.81
7.4.330.0050.00015.55
7.4.320.0060.00016.44
7.4.300.0060.00016.49
7.4.290.0040.00416.57
7.4.280.0080.00016.62
7.4.270.0030.00316.61
7.4.260.0030.00616.57
7.4.250.0030.00516.53
7.4.240.0060.00016.61
7.4.230.0070.00016.54
7.4.220.0000.00816.33
7.4.210.0200.00016.63
7.4.200.0040.00416.33
7.4.160.0160.00216.60
7.4.150.0130.00517.40
7.4.140.0120.00717.86
7.4.130.0100.01016.50
7.4.120.0120.00816.49
7.4.110.0100.01016.65
7.4.100.0070.01016.52
7.4.90.0060.01216.53
7.4.80.0090.01519.39
7.4.70.0120.00616.68
7.4.60.0060.00916.69
7.4.50.0130.00316.43
7.4.40.0030.01416.44
7.4.00.0090.00314.97
7.3.330.0060.00013.38
7.3.320.0000.00713.44
7.3.310.0030.00316.41
7.3.300.0000.00716.27
7.3.290.0080.00716.42
7.3.280.0100.00516.38
7.3.270.0110.00617.40
7.3.260.0090.01016.47
7.3.250.0070.01016.45
7.3.240.0070.01116.31
7.3.230.0090.00916.43
7.3.210.0150.00616.54
7.3.200.0110.01116.41
7.3.190.0130.00316.27
7.3.180.0120.00316.52
7.3.170.0060.00916.58
7.3.160.0110.00416.47
7.2.330.0120.00616.57
7.2.320.0090.01016.44
7.2.310.0100.00716.64
7.2.300.0100.00716.54
7.2.290.0120.00416.48
7.2.60.0170.00316.59
7.2.10.0060.01218.05
7.2.00.0280.01217.93
7.1.200.0070.00715.64
7.1.130.0100.00616.97
7.1.120.0320.00917.02
7.1.110.0370.00716.05
7.1.100.0330.01016.29
7.1.90.0060.01116.24
7.1.80.0320.00616.36
7.1.70.0070.00715.56
7.1.60.0180.00933.34
7.1.50.0410.00933.10
7.1.40.0620.01932.77
7.1.30.0240.01232.74
7.1.20.0180.01132.63
7.1.10.0300.00414.95
7.1.00.0070.01114.96

preferences:
58.26 ms | 401 KiB | 5 Q