3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Fruits { public $fruits = 'grape '; public function output_fruits_name() { return 'lemon '; } function test() { echo $this->fruits; echo $this->output_fruits_name() ; } } $obj = new Fruits(); $obj->test(); ?>

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.0160.00016.50
8.3.50.0040.01816.32
8.3.40.0100.00720.13
8.3.30.0120.00318.59
8.3.20.0050.00224.18
8.3.10.0040.00424.66
8.3.00.0040.00426.16
8.2.180.0060.01225.92
8.2.170.0090.00618.96
8.2.160.0100.00322.96
8.2.150.0040.00425.66
8.2.140.0070.00024.66
8.2.130.0000.00826.16
8.2.120.0040.00426.16
8.2.110.0060.00320.98
8.2.100.0060.00617.84
8.2.90.0000.00819.08
8.2.80.0030.00617.97
8.2.70.0040.00417.50
8.2.60.0050.00317.93
8.2.50.0040.00418.10
8.2.40.0030.00618.27
8.2.30.0000.00818.11
8.2.20.0040.00419.26
8.2.10.0040.00417.49
8.2.00.0060.00317.71
8.1.280.0090.00625.92
8.1.270.0090.00924.66
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00623.97
8.1.230.0040.00717.77
8.1.220.0000.00817.76
8.1.210.0070.00318.77
8.1.200.0000.00817.23
8.1.190.0000.00817.23
8.1.180.0040.00418.10
8.1.170.0000.00718.77
8.1.160.0050.00218.87
8.1.150.0040.00418.49
8.1.140.0000.00817.39
8.1.130.0030.00517.38
8.1.120.0000.00817.39
8.1.110.0000.00817.37
8.1.100.0000.00817.32
8.1.90.0040.00417.32
8.1.80.0000.00817.36
8.1.70.0080.00017.49
8.1.60.0060.00317.55
8.1.50.0000.00717.53
8.1.40.0040.00417.66
8.1.30.0060.00317.70
8.1.20.0050.00217.63
8.1.10.0050.00217.49
8.1.00.0040.00417.50
8.0.300.0050.00318.78
8.0.290.0080.00016.63
8.0.280.0030.00318.48
8.0.270.0070.00016.85
8.0.260.0000.00816.71
8.0.250.0000.00816.77
8.0.240.0040.00416.88
8.0.230.0070.00016.81
8.0.220.0040.00416.79
8.0.210.0000.00816.83
8.0.200.0080.00016.72
8.0.190.0040.00416.75
8.0.180.0040.00416.84
8.0.170.0000.00716.81
8.0.160.0000.00716.71
8.0.150.0040.00416.75
8.0.140.0030.00316.66
8.0.130.0000.00716.70
8.0.120.0040.00416.80
8.0.110.0040.00416.65
8.0.100.0040.00416.65
8.0.90.0030.00316.74
8.0.80.0000.00816.76
8.0.70.0040.00416.67
8.0.60.0050.00316.73
8.0.50.0000.00716.63
8.0.30.0030.00316.69
8.0.20.0030.00316.65
8.0.10.0030.00516.86

preferences:
45.54 ms | 400 KiB | 5 Q