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; } $message = sprintf( 'Undefined property: %s::%s', get_class(), $property ); trigger_error( $message, E_USER_NOTICE); return null; } } $test = new Test(); echo $test->bla . PHP_EOL; echo $test->bla . PHP_EOL; echo $test->bla . PHP_EOL; echo $test->kaka . 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.0070.01416.63
8.3.50.0140.00016.59
8.3.40.0120.00318.59
8.3.30.0120.00618.84
8.3.20.0080.00020.52
8.3.10.0000.01121.87
8.3.00.0080.00019.79
8.2.180.0070.01318.29
8.2.170.0130.00722.96
8.2.160.0120.00619.18
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00719.27
8.2.120.0080.00026.35
8.2.110.0070.00320.43
8.2.100.0110.00017.91
8.2.90.0050.00319.21
8.2.80.0030.00518.05
8.2.70.0100.00017.63
8.2.60.0000.00818.04
8.2.50.0060.00318.10
8.2.40.0040.00420.42
8.2.30.0040.00419.23
8.2.20.0000.00718.09
8.2.10.0040.00417.95
8.2.00.0000.00717.92
8.1.280.0190.00325.92
8.1.270.0040.00422.18
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0040.00423.98
8.1.230.0080.00419.02
8.1.220.0030.00517.74
8.1.210.0000.00918.77
8.1.200.0030.00717.13
8.1.190.0060.00317.35
8.1.180.0040.00418.10
8.1.170.0000.00718.81
8.1.160.0000.00719.07
8.1.150.0040.00420.59
8.1.140.0040.00719.63
8.1.130.0000.00818.77
8.1.120.0050.00217.42
8.1.110.0080.00017.37
8.1.100.0040.00417.41
8.1.90.0000.00717.44
8.1.80.0020.00517.42
8.1.70.0030.00317.48
8.1.60.0060.00317.43
8.1.50.0080.00017.52
8.1.40.0060.00617.54
8.1.30.0040.00417.66
8.1.20.0000.00817.66
8.1.10.0000.00917.56
8.1.00.0030.00617.49
8.0.300.0000.00818.77
8.0.290.0050.00316.75
8.0.280.0000.00718.50
8.0.270.0030.00317.26
8.0.260.0030.00316.96
8.0.250.0030.00316.95
8.0.240.0030.00316.93
8.0.230.0050.00317.02
8.0.220.0000.00717.00
8.0.210.0030.00316.94
8.0.200.0000.00716.91
8.0.190.0040.00416.89
8.0.180.0000.00716.91
8.0.170.0050.00316.93
8.0.160.0040.00416.98
8.0.150.0030.00516.88
8.0.140.0040.00416.82
8.0.130.0050.00013.38
8.0.120.0040.00416.90
8.0.110.0000.00716.83
8.0.100.0000.00716.91
8.0.90.0040.00416.77
8.0.80.0000.01616.96
8.0.70.0030.00516.82
8.0.60.0050.00216.88
8.0.50.0050.00316.76
8.0.30.0080.01117.11
8.0.20.0110.01017.40
8.0.10.0050.00217.03
8.0.00.0100.01016.66
7.4.330.0060.00015.55
7.4.320.0030.00316.58
7.4.300.0060.00016.48
7.4.290.0030.00316.59
7.4.280.0000.00716.50
7.4.270.0000.00716.61
7.4.260.0000.00716.48
7.4.250.0000.00716.44
7.4.240.0040.00416.46
7.4.230.0040.00416.41
7.4.220.0160.00316.46
7.4.210.0130.01016.49
7.4.200.0030.00416.45
7.4.160.0080.00716.54
7.4.150.0160.00617.40
7.4.140.0110.00917.86
7.4.130.0090.00916.58
7.4.120.0100.01116.58
7.4.110.0060.01116.53
7.4.100.0090.00916.45
7.4.90.0030.01316.62
7.4.80.0150.00919.39
7.4.70.0100.01316.51
7.4.60.0090.00616.60
7.4.50.0040.01516.55
7.4.40.0070.01016.41
7.4.30.0060.00916.47
7.4.00.0080.00615.17
7.3.330.0020.00213.43
7.3.320.0020.00213.43
7.3.310.0000.00816.20
7.3.300.0000.00716.44
7.3.290.0060.00716.46
7.3.280.0060.01016.42
7.3.270.0100.01417.40
7.3.260.0070.01216.45
7.3.250.0120.00916.51
7.3.240.0100.00816.40
7.3.230.0150.00316.40
7.3.210.0000.01816.60
7.3.200.0130.00316.52
7.3.190.0000.01716.57
7.3.180.0120.00416.39
7.3.170.0100.01316.51
7.3.160.0040.01316.45
7.3.10.0000.01216.54
7.3.00.0040.01016.61
7.2.330.0070.01416.60
7.2.320.0110.00616.80
7.2.310.0100.00716.42
7.2.300.0070.01016.91
7.2.290.0160.00616.68
7.2.130.0050.01016.87
7.2.120.0070.00516.85
7.2.110.0060.00916.75
7.2.100.0000.01316.58
7.2.90.0060.00516.95
7.2.80.0060.01016.75
7.2.70.0110.00416.70
7.2.60.0070.00716.81
7.2.50.0020.00916.85
7.2.40.0080.00516.77
7.2.30.0080.00616.91
7.2.20.0100.00716.91
7.2.10.0090.00516.82
7.2.00.0060.00917.80
7.1.250.0050.00515.66
7.1.240.0030.00715.63
7.1.230.0060.00615.71
7.1.220.0090.00315.75
7.1.210.0080.00815.73
7.1.200.0060.00715.72
7.1.190.0040.00715.66
7.1.180.0100.00315.58
7.1.170.0060.00615.75
7.1.160.0110.00315.48
7.1.150.0040.00715.73
7.1.140.0000.01015.78
7.1.130.0040.00715.66
7.1.120.0090.00615.54
7.1.110.0040.01115.85
7.1.100.0060.00516.94
7.1.90.0030.00615.62
7.1.80.0080.00815.48
7.1.70.0060.00816.34
7.1.60.0180.00825.38
7.1.50.0110.01325.07
7.1.40.0120.01225.07
7.1.30.0150.01025.14
7.1.20.0190.00825.20
7.1.10.0030.01216.18
7.1.00.0040.01216.28
7.0.330.0050.00515.24
7.0.320.0090.00015.37
7.0.310.0000.01015.27
7.0.300.0120.00415.23
7.0.290.0000.01315.21
7.0.280.0040.00415.13
7.0.270.0060.00315.29
7.0.260.0090.00015.38
7.0.250.0090.00915.28
7.0.240.0000.01115.37
7.0.230.0030.00715.24
7.0.220.0000.01115.52
7.0.210.0110.00415.28
7.0.200.0020.01115.99
7.0.190.0040.01215.86
7.0.180.0070.00715.79
7.0.170.0020.01115.70
7.0.160.0080.00815.77
7.0.150.0090.00615.81
7.0.140.0090.00715.60
7.0.130.0080.00915.86
7.0.120.0030.01115.91
7.0.110.0010.01315.77
7.0.100.0050.00915.96
7.0.90.0110.00715.80
7.0.80.0080.00715.94
7.0.70.0110.00415.72
7.0.60.0060.00815.66
7.0.50.0070.00615.71
7.0.40.0070.00614.68
7.0.30.0030.01215.12
7.0.20.0080.00614.77
7.0.10.0080.00614.89
7.0.00.0060.00814.83
5.6.380.0040.00714.79

preferences:
156.45 ms | 400 KiB | 5 Q