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); //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.0150.00018.55
8.3.50.0090.00918.02
8.3.40.0090.00618.97
8.3.30.0110.00418.68
8.3.20.0040.00420.03
8.3.10.0020.00521.76
8.3.00.0080.00019.21
8.2.180.0110.00718.29
8.2.170.0110.00422.96
8.2.160.0000.01320.26
8.2.150.0080.00324.18
8.2.140.0030.00524.66
8.2.130.0080.00022.27
8.2.120.0100.00726.35
8.2.110.0060.00321.18
8.2.100.0080.00417.91
8.2.90.0090.00019.30
8.2.80.0040.00417.97
8.2.70.0030.00517.63
8.2.60.0040.00417.93
8.2.50.0030.00618.16
8.2.40.0060.00320.61
8.2.30.0000.00819.37
8.2.20.0040.00418.00
8.2.10.0040.00418.13
8.2.00.0080.00018.32
8.1.280.0140.00325.92
8.1.270.0030.00520.11
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00322.59
8.1.230.0080.00417.83
8.1.220.0000.00717.74
8.1.210.0050.00518.77
8.1.200.0060.00317.35
8.1.190.0000.00917.00
8.1.180.0040.00418.10
8.1.170.0040.00418.69
8.1.160.0000.00718.71
8.1.150.0000.00718.88
8.1.140.0040.00417.57
8.1.130.0000.00720.55
8.1.120.0040.00417.39
8.1.110.0030.00617.33
8.1.100.0040.00417.34
8.1.90.0040.00417.48
8.1.80.0050.00317.33
8.1.70.0050.00217.39
8.1.60.0040.00417.60
8.1.50.0040.00417.48
8.1.40.0040.00417.54
8.1.30.0080.00317.58
8.1.20.0040.00717.61
8.1.10.0040.00417.56
8.1.00.0000.00717.42
8.0.300.0000.00718.77
8.0.290.0000.00716.63
8.0.280.0030.00318.44
8.0.270.0080.00017.30
8.0.260.0030.00516.86
8.0.250.0030.00316.97
8.0.240.0070.00316.84
8.0.230.0030.00316.97
8.0.220.0000.00816.92
8.0.210.0040.00416.77
8.0.200.0030.00316.81
8.0.190.0060.00316.91
8.0.180.0040.00416.84
8.0.170.0030.00516.96
8.0.160.0040.00316.78
8.0.150.0060.00316.82
8.0.140.0030.00316.79
8.0.130.0070.00013.32
8.0.120.0000.00716.89
8.0.110.0000.00716.90
8.0.100.0040.00416.91
8.0.90.0070.00016.69
8.0.80.0170.00016.87
8.0.70.0070.00016.87
8.0.60.0050.00316.82
8.0.50.0040.00416.75
8.0.30.0110.00917.14
8.0.20.0100.01017.40
8.0.10.0040.00417.12
8.0.00.0100.01016.71
7.4.330.0050.00016.71
7.4.320.0030.00316.55
7.4.300.0030.00316.45
7.4.290.0030.00316.49
7.4.280.0040.00416.56
7.4.270.0000.00816.43
7.4.260.0030.00316.48
7.4.250.0000.01016.41
7.4.240.0000.00716.59
7.4.230.0030.00316.47
7.4.220.0040.00416.63
7.4.210.0090.00616.69
7.4.200.0040.00316.41
7.4.160.0070.01216.48
7.4.150.0120.00617.40
7.4.140.0060.01217.86
7.4.130.0160.00316.60
7.4.120.0120.00716.49
7.4.110.0090.01516.46
7.4.100.0100.00716.72
7.4.90.0150.00316.57
7.4.80.0080.00919.39
7.4.70.0130.00916.34
7.4.60.0150.00316.41
7.4.50.0030.01316.40
7.4.40.0130.00316.46
7.4.00.0060.01214.97
7.3.330.0030.00313.38
7.3.320.0000.00613.31
7.3.310.0000.00716.34
7.3.300.0030.00316.32
7.3.290.0110.00716.31
7.3.280.0090.01016.33
7.3.270.0130.00317.40
7.3.260.0070.01116.51
7.3.250.0100.00916.35
7.3.240.0120.01016.45
7.3.230.0060.01116.23
7.3.210.0150.00416.38
7.3.200.0000.01716.60
7.3.190.0060.01016.37
7.3.180.0050.01016.57
7.3.170.0070.01016.30
7.3.160.0090.00616.14
7.2.330.0100.00516.63
7.2.320.0080.00816.82
7.2.310.0140.00616.68
7.2.300.0110.00716.81
7.2.290.0090.00616.70
7.2.60.0140.00016.94
7.2.50.0110.00716.95
7.2.10.0440.01017.35
7.2.00.0320.01117.82
7.1.200.0030.01015.50
7.1.130.0360.01016.73
7.1.120.0380.00616.27
7.1.110.0360.00816.11
7.1.100.0320.01316.28
7.1.90.0430.00716.03
7.1.80.0360.01115.88
7.1.70.0190.00615.34
7.1.60.0300.01533.38
7.1.50.0310.00832.72
7.1.40.0530.01032.63
7.1.30.0290.01832.61
7.1.20.0260.01332.63
7.1.10.0560.00714.63
7.1.00.0380.00714.59

preferences:
59.74 ms | 400 KiB | 5 Q