3v4l.org

run code in 300+ PHP versions simultaneously
<?php class word{ private $text; public function __construct($word){ $this->text=$word; } public function setWord($word){ $this->text=$word; } public function getWord() { return $this->text; } } $class_words = array(); $word = new word("this"); $class_words[] = $word->getWord(); $word->setWord("that"); $class_words[] = $word->getWord(); print_r($class_words); exit;

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.4.140.0140.00717.49
8.4.130.0130.00719.40
8.4.120.0060.00520.66
8.4.110.0130.00622.32
8.4.100.0110.01017.92
8.4.90.0090.00918.86
8.4.80.0040.00417.94
8.4.70.0100.00317.81
8.4.60.0140.00920.31
8.4.50.0070.00317.61
8.4.40.0130.00619.34
8.4.30.0090.00922.50
8.4.20.0110.00818.69
8.4.10.0060.00319.73
8.3.270.0070.01216.77
8.3.260.0120.00816.52
8.3.250.0080.01118.73
8.3.240.0090.01016.65
8.3.230.0110.00916.67
8.3.220.0100.00917.28
8.3.210.0100.00816.71
8.3.200.0050.00516.56
8.3.190.0050.00418.89
8.3.180.0120.00716.59
8.3.170.0050.00218.80
8.3.160.0100.01016.75
8.3.150.0040.00418.92
8.3.140.0080.00816.43
8.3.130.0070.01318.44
8.3.120.0060.00320.89
8.3.110.0030.00716.53
8.3.100.0070.00316.55
8.3.90.0100.01026.77
8.3.80.0060.00318.43
8.3.70.0110.00718.21
8.3.60.0120.00616.63
8.3.50.0120.00017.29
8.3.40.0090.00618.76
8.3.30.0150.00018.84
8.3.20.0090.00020.73
8.3.10.0050.00323.48
8.3.00.0050.00322.38
8.2.290.0120.00620.38
8.2.280.0050.00320.04
8.2.270.0080.00017.45
8.2.260.0140.00319.13
8.2.250.0100.00716.59
8.2.240.0030.00718.57
8.2.230.0030.00520.94
8.2.220.0090.00024.06
8.2.210.0110.00026.77
8.2.200.0030.00916.38
8.2.190.0090.00916.63
8.2.180.0070.01516.63
8.2.170.0120.00322.96
8.2.160.0030.01020.47
8.2.150.0070.00025.66
8.2.140.0040.00424.66
8.2.130.0080.00019.31
8.2.120.0040.00426.35
8.2.110.0110.00721.04
8.2.100.0090.00317.91
8.2.90.0030.00717.62
8.2.80.0030.00618.82
8.2.70.0040.00417.68
8.2.60.0040.00418.03
8.2.50.0090.00018.10
8.2.40.0080.00019.34
8.2.30.0030.00519.25
8.2.20.0000.00718.00
8.2.10.0040.00419.27
8.2.00.0040.00417.96
8.1.330.0140.00422.06
8.1.320.0080.01116.37
8.1.310.0040.00416.49
8.1.300.0060.00317.88
8.1.290.0030.00630.84
8.1.280.0130.00325.92
8.1.270.0000.00920.28
8.1.260.0080.00026.35
8.1.250.0050.00328.09
8.1.240.0000.00924.03
8.1.230.0120.01220.43
8.1.220.0000.00917.74
8.1.210.0060.00318.77
8.1.200.0080.00017.35
8.1.190.0040.00417.10
8.1.180.0060.00318.10
8.1.170.0040.00418.40
8.1.160.0000.00818.92
8.1.150.0000.00718.48
8.1.140.0000.00818.73
8.1.130.0040.00420.25
8.1.120.0030.00317.40
8.1.110.0000.00817.30
8.1.100.0040.00417.29
8.1.90.0000.00717.41
8.1.80.0050.00317.37
8.1.70.0060.00317.36
8.1.60.0030.00617.60
8.1.50.0070.00017.56
8.1.40.0040.00417.52
8.1.30.0040.00417.70
8.1.20.0030.00617.62
8.1.10.0080.00017.48
8.1.00.0040.00417.40
8.0.300.0040.00420.09
8.0.290.0000.00816.63
8.0.280.0030.00318.29
8.0.270.0030.00317.91
8.0.260.0000.00618.38
8.0.250.0070.00016.87
8.0.240.0000.00716.84
8.0.230.0030.00516.91
8.0.220.0000.00716.95
8.0.210.0050.00216.88
8.0.200.0050.00316.84
8.0.190.0000.00816.96
8.0.180.0040.00416.85
8.0.170.0040.00416.87
8.0.160.0000.00716.91
8.0.150.0080.00016.70
8.0.140.0050.00316.93
8.0.130.0050.00413.38
8.0.120.0070.00016.74
8.0.110.0040.00416.77
8.0.100.0040.00416.98
8.0.90.0030.00316.88
8.0.80.0100.00616.94
8.0.70.0000.00816.78
8.0.60.0020.00516.89
8.0.50.0040.00416.93
8.0.30.0080.01016.87
8.0.20.0180.00316.99
8.0.10.0040.00416.90
8.0.00.0090.00916.86
7.4.330.0050.00015.55
7.4.320.0030.00316.36
7.4.300.0000.00616.64
7.4.290.0030.00316.60
7.4.280.0040.00416.64
7.4.270.0000.00816.40
7.4.260.0110.00016.58
7.4.250.0070.00016.42
7.4.240.0070.00016.42
7.4.230.0030.00516.54
7.4.220.0060.00316.61
7.4.210.0080.01116.59
7.4.200.0000.00716.58
7.4.160.0070.01016.53
7.4.140.0050.01117.86
7.4.130.0100.00716.55
7.4.120.0190.00016.71
7.4.110.0100.00716.48
7.4.100.0070.01016.58
7.4.90.0130.00616.49
7.4.80.0040.01419.39
7.4.70.0050.01116.60
7.4.60.0060.01016.54
7.4.50.0090.00616.33
7.4.40.0080.00916.50
7.4.10.0100.01014.98
7.4.00.0100.00814.84
7.3.330.0060.00013.29
7.3.320.0000.00513.38
7.3.310.0020.00516.38
7.3.300.0000.00716.41
7.3.290.0000.00716.41
7.3.280.0040.01416.33
7.3.260.0090.00916.45
7.3.240.0100.00816.47
7.3.230.0060.01016.39
7.3.210.0070.01416.36
7.3.200.0110.00716.43
7.3.190.0070.01416.29
7.3.180.0140.00416.37
7.3.170.0100.01016.43
7.3.160.0120.00516.36
7.3.130.0070.01014.86
7.3.120.0100.00514.72
7.3.110.0080.01114.67
7.3.100.0090.00714.74
7.3.90.0060.00714.76
7.3.80.0030.01114.89
7.3.70.0060.00714.58
7.3.60.0070.00714.74
7.3.50.0080.00714.61
7.3.40.0040.01014.64
7.3.30.0070.00814.65
7.3.20.1610.00816.06
7.3.10.1010.00516.06
7.3.00.1510.00716.00
7.2.330.0110.01116.41
7.2.320.0120.01216.53
7.2.310.0040.01216.43
7.2.300.0110.00616.42
7.2.290.0060.01216.84
7.2.260.0090.00915.20
7.2.250.0070.01014.94
7.2.240.0070.01115.15
7.2.230.0100.00615.08
7.2.220.0060.00814.98
7.2.210.0050.00914.87
7.2.200.0070.00714.89
7.2.190.0090.00415.09
7.2.180.0020.01315.04
7.2.170.0010.01415.08
7.2.160.0080.00515.08
7.2.150.2020.00815.93
7.2.140.2110.01015.92
7.2.130.3100.00215.94
7.2.120.3170.00915.84
7.2.110.2740.01015.95
7.2.100.3310.00815.98
7.2.90.2990.00415.94
7.2.80.2730.00415.89
7.2.70.2150.00715.80
7.2.60.2660.00415.87
7.2.50.2140.01115.83
7.2.40.1870.01015.92
7.2.30.1620.00815.94
7.2.20.1770.01215.96
7.2.10.2250.00715.81
7.2.00.1710.00916.06
7.1.330.0050.00815.72
7.1.320.0060.00615.85
7.1.310.0080.00515.92
7.1.300.0080.00415.77
7.1.290.0040.01015.61
7.1.280.0060.00915.74
7.1.270.1130.00515.27
7.1.260.1290.00815.24
7.1.250.2870.00814.87
7.1.240.0070.00315.57
7.1.230.0060.00315.77
7.1.220.0030.01315.51
7.1.210.0060.00615.80
7.1.200.0070.00415.73
7.1.190.0130.00015.77
7.1.180.0070.00715.69
7.1.170.0030.01015.82
7.1.160.0060.00615.71
7.1.150.0100.00315.67
7.1.140.0000.01215.51
7.1.130.0070.00715.68
7.1.120.0070.00715.89
7.1.110.0130.00315.74
7.1.100.0060.01015.74
7.1.90.0120.00315.67
7.1.80.0070.00315.75
7.1.70.0100.00315.63
7.1.60.0130.00315.59
7.1.50.0070.01015.80
7.1.40.0070.00715.81
7.1.30.0070.00715.64
7.1.20.0060.00915.56
7.1.10.0030.00715.59
7.1.00.0040.00415.78

preferences:
141.2 ms | 403 KiB | 5 Q