3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public function __get( $property ) { if ( 'bla' === $property ) { echo 'Initializing Text->bla' . PHP_EOL; $this->bla = 'Value'; return $this->bla; } } } $test = new Test(); echo $test->bla . PHP_EOL; echo $test->bla . PHP_EOL; echo $test->bla . PHP_EOL;

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.0090.00616.75
8.3.50.0100.00716.50
8.3.40.0110.00318.79
8.3.30.0120.00618.72
8.3.20.0080.00020.34
8.3.10.0030.00621.86
8.3.00.0080.00019.56
8.2.180.0100.01018.54
8.2.170.0140.00322.96
8.2.160.0140.00019.03
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0050.00319.36
8.2.120.0030.00526.35
8.2.110.0030.00621.06
8.2.100.0070.00417.78
8.2.90.0040.00419.26
8.2.80.0030.00617.97
8.2.70.0000.00817.50
8.2.60.0050.00317.93
8.2.50.0040.00418.10
8.2.40.0070.00020.45
8.2.30.0000.00719.25
8.2.20.0000.00718.11
8.2.10.0040.00417.99
8.2.00.0030.00517.97
8.1.280.0090.00925.92
8.1.270.0070.00022.18
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0000.00923.88
8.1.230.0040.00719.08
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0030.00617.35
8.1.190.0000.00817.23
8.1.180.0030.00518.10
8.1.170.0020.00519.06
8.1.160.0040.00418.98
8.1.150.0040.00418.80
8.1.140.0050.00219.57
8.1.130.0000.00718.89
8.1.120.0030.00317.44
8.1.110.0030.00617.47
8.1.100.0040.00417.44
8.1.90.0080.00017.50
8.1.80.0040.00417.32
8.1.70.0000.00717.47
8.1.60.0040.00417.49
8.1.50.0040.00417.49
8.1.40.0040.00417.43
8.1.30.0000.00817.72
8.1.20.0020.00517.63
8.1.10.0080.00017.56
8.1.00.0000.00717.35
8.0.300.0080.00018.77
8.0.290.0000.00816.75
8.0.280.0040.00418.50
8.0.270.0000.00817.25
8.0.260.0000.00718.50
8.0.250.0000.00716.96
8.0.240.0040.00416.96
8.0.230.0000.00716.89
8.0.220.0030.00516.80
8.0.210.0040.00416.79
8.0.200.0000.00716.82
8.0.190.0090.00016.96
8.0.180.0040.00416.81
8.0.170.0030.00516.92
8.0.160.0070.00016.97
8.0.150.0000.00716.83
8.0.140.0000.00816.83
8.0.130.0000.00613.25
8.0.120.0040.00416.71
8.0.110.0050.00216.77
8.0.100.0000.00716.83
8.0.90.0000.00716.74
8.0.80.0030.01316.83
8.0.70.0000.00816.76
8.0.60.0000.00716.79
8.0.50.0000.00716.82
8.0.30.0090.01017.12
8.0.20.0130.00817.40
8.0.10.0040.00416.85
8.0.00.0060.01616.59
7.4.330.0070.00015.55
7.4.320.0000.00616.64
7.4.300.0000.00716.57
7.4.290.0030.00316.46
7.4.280.0050.00216.51
7.4.270.0000.00716.52
7.4.260.0030.00316.54
7.4.250.0030.00316.55
7.4.240.0000.00816.53
7.4.230.0030.00316.63
7.4.220.0060.01316.66
7.4.210.0130.00316.56
7.4.200.0030.00316.63
7.4.160.0060.01116.53
7.4.150.0130.00617.40
7.4.140.0120.00817.86
7.4.130.0070.01016.57
7.4.120.0120.01016.46
7.4.110.0100.01016.46
7.4.100.0120.00616.63
7.4.90.0060.01316.51
7.4.80.0090.01219.39
7.4.70.0140.00716.44
7.4.60.0090.00716.33
7.4.50.0110.00416.19
7.4.40.0040.01316.47
7.4.30.0100.00916.61
7.4.00.0080.00815.11
7.3.330.0020.00213.13
7.3.320.0050.00013.19
7.3.310.0030.00316.31
7.3.300.0000.00616.38
7.3.290.0090.00916.38
7.3.280.0090.00816.32
7.3.270.0120.00617.40
7.3.260.0130.00716.42
7.3.250.0090.00816.45
7.3.240.0150.00516.50
7.3.230.0090.01616.61
7.3.210.0080.00816.43
7.3.200.0060.01716.50
7.3.190.0060.01216.43
7.3.180.0060.01016.65
7.3.170.0100.01016.36
7.3.160.0130.00316.66
7.2.330.0100.01016.60
7.2.320.0030.01416.74
7.2.310.0130.00616.74
7.2.300.0170.00016.78
7.2.290.0110.01516.72
7.2.60.0030.00616.76
7.1.200.0000.01015.83
7.1.70.0090.00617.17
7.1.60.0200.01735.18
7.1.50.0190.01634.52
7.1.40.0190.01634.21
7.1.30.0240.01234.28
7.1.20.0250.01534.43
7.1.10.0190.00116.48
7.1.00.0060.01216.54
7.0.200.0000.01716.63
7.0.190.0070.00916.41
7.0.180.0000.01616.40
7.0.170.0100.00716.29
7.0.160.0080.00916.21
7.0.150.0150.00616.28
7.0.140.0060.01716.20
7.0.130.0070.01316.46
7.0.120.0090.01116.74
7.0.110.0030.01216.23
7.0.100.0110.00916.35
7.0.90.0020.01316.30
7.0.80.0080.01116.34
7.0.70.0060.01316.36
7.0.60.0090.01216.19
7.0.50.0100.00716.37
7.0.40.0030.01616.52
7.0.30.0070.01116.60
7.0.20.0100.00716.45
7.0.10.0030.01216.27
7.0.00.0050.01216.27

preferences:
45.55 ms | 400 KiB | 5 Q